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

Unified Diff: chrome/browser/ui/views/location_bar/keyword_hint_view.cc

Issue 11360144: Converts some of the omnibox related classes to support multiple (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
Index: chrome/browser/ui/views/location_bar/keyword_hint_view.cc
diff --git a/chrome/browser/ui/views/location_bar/keyword_hint_view.cc b/chrome/browser/ui/views/location_bar/keyword_hint_view.cc
index 06b47c5b20c6cff5c26c9972114c34cdf4508d66..da0eeffb41fa06820ef9df8ebe245d8478b02af0 100644
--- a/chrome/browser/ui/views/location_bar/keyword_hint_view.cc
+++ b/chrome/browser/ui/views/location_bar/keyword_hint_view.cc
@@ -130,11 +130,12 @@ void KeywordHintView::Layout() {
}
views::Label* KeywordHintView::CreateLabel() {
+ const ui::NativeTheme* theme = GetNativeTheme();
views::Label* label = new views::Label();
label->SetBackgroundColor(LocationBarView::GetColor(
- ToolbarModel::NONE, LocationBarView::BACKGROUND));
+ theme, ToolbarModel::NONE, LocationBarView::BACKGROUND));
label->SetEnabledColor(LocationBarView::GetColor(
- ToolbarModel::NONE, LocationBarView::DEEMPHASIZED_TEXT));
+ theme, ToolbarModel::NONE, LocationBarView::DEEMPHASIZED_TEXT));
AddChildView(label);
return label;
}

Powered by Google App Engine
This is Rietveld 408576698