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

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

Issue 227553008: Merge 261625 "Remove the red background color when user enters a..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1916/src/
Patch Set: Created 6 years, 8 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
===================================================================
--- ui/app_list/views/folder_header_view.cc (revision 262202)
+++ ui/app_list/views/folder_header_view.cc (working copy)
@@ -47,12 +47,6 @@
virtual ~FolderNameView() {
}
- void Update() {
- SetBackgroundColor(text().size() <= kMaxFolderNameChars
- ? kContentsBackgroundColor
- : SK_ColorRED);
- }
-
private:
DISALLOW_COPY_AND_ASSIGN(FolderNameView);
};
@@ -120,7 +114,6 @@
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();
@@ -181,7 +174,6 @@
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