Code: void FolderHeaderView::Update() {
  if (!folder_item_)
     return;
 
   folder_name_view_->SetVisible(folder_name_visible_);
  if (folder_name_visible_)
     folder_name_view_->SetText(base::UTF8ToUTF16(folder_item_->name()));
 
   Layout();
 }

Commit Message: Enforce the maximum length of the folder name in UI.

BUG=355797
R=xiyuan@chromium.org

Review URL: https://codereview.chromium.org/203863005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260156 0039d316-1c4b-4281-b951-d872f2087c98
CWE ID: CWE-399
void FolderHeaderView::Update() {
  if (!folder_item_)
     return;
 
   folder_name_view_->SetVisible(folder_name_visible_);
  if (folder_name_visible_) {
     folder_name_view_->SetText(base::UTF8ToUTF16(folder_item_->name()));
    folder_name_view_->Update();
  }
 
   Layout();
 }
