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

Unified Diff: chrome/browser/ui/search/search_ui.cc

Issue 1408273002: Make some updates to BM bar for MD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: eschew redundancy Created 5 years, 2 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 | chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/search_ui.cc
diff --git a/chrome/browser/ui/search/search_ui.cc b/chrome/browser/ui/search/search_ui.cc
index d69483d20369a126ed0647c907e5270463b62107..887339a443902d2595fae7dcc0b92eaade2a69ff 100644
--- a/chrome/browser/ui/search/search_ui.cc
+++ b/chrome/browser/ui/search/search_ui.cc
@@ -6,13 +6,17 @@
#include "chrome/browser/themes/theme_properties.h"
#include "chrome/browser/themes/theme_service.h"
+#include "ui/base/resource/material_design/material_design_controller.h"
namespace chrome {
SkColor GetDetachedBookmarkBarBackgroundColor(ThemeService* theme_service) {
if (!theme_service->UsingDefaultTheme())
return theme_service->GetColor(ThemeProperties::COLOR_TOOLBAR);
- return SkColorSetARGB(0xFF, 0xF1, 0xF1, 0xF1);
+
+ return ui::MaterialDesignController::IsModeMaterial()
+ ? SK_ColorWHITE
+ : SkColorSetARGB(0xFF, 0xF1, 0xF1, 0xF1);
}
SkColor GetDetachedBookmarkBarSeparatorColor(ThemeService* theme_service) {
« no previous file with comments | « no previous file | chrome/browser/ui/views/bookmarks/bookmark_bar_instructions_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698