Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(548)

Unified Diff: ui/app_list/views/folder_header_view.cc

Issue 224503002: Remove the red background color when user enters a folder name that exceeds the maximum length. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/folder_header_view.cc
diff --git a/ui/app_list/views/folder_header_view.cc b/ui/app_list/views/folder_header_view.cc
index 7a2c0f237c4eb6aaaf3744d73109b9462529c605..c02d5950998ebf3e99991050cc3bdc9b4aa21566 100644
--- a/ui/app_list/views/folder_header_view.cc
+++ b/ui/app_list/views/folder_header_view.cc
@@ -47,12 +47,6 @@ class FolderHeaderView::FolderNameView : public views::Textfield {
virtual ~FolderNameView() {
}
- void Update() {
- SetBackgroundColor(text().size() <= kMaxFolderNameChars
- ? kContentsBackgroundColor
- : SK_ColorRED);
- }
-
private:
DISALLOW_COPY_AND_ASSIGN(FolderNameView);
};
@@ -120,7 +114,6 @@ void FolderHeaderView::Update() {
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();
@@ -193,7 +186,6 @@ void FolderHeaderView::ContentsChanged(views::Textfield* sender,
if (!folder_item_)
return;
- folder_name_view_->Update();
folder_item_->RemoveObserver(this);
// Enforce the maximum folder name length in UI.
std::string name = base::UTF16ToUTF8(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698