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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view.cc

Issue 1774423002: CrOS - in pre-MD mode, paint frame correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
index ec40da08dc604692bf8d857b291278d75b306b27..af22884aaddf9bf7d2466797792ae164b9c37e4f 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc
@@ -108,7 +108,14 @@ gfx::ImageSkia BrowserNonClientFrameView::GetFrameImage(bool active) const {
const ui::ThemeProvider* tp = frame_->GetThemeProvider();
int frame_image_id = active ? IDR_THEME_FRAME : IDR_THEME_FRAME_INACTIVE;
- if (ui::MaterialDesignController::IsModeMaterial()) {
+ // |default_uses_color| means the default frame is painted with a solid color.
+ // When false, the default frame is painted with assets.
+#if defined(OS_CHROMEOS)
+ bool default_uses_color = true;
+#else
+ bool default_uses_color = ui::MaterialDesignController::IsModeMaterial();
+#endif
+ if (default_uses_color) {
return ShouldPaintAsThemed() && (tp->HasCustomImage(frame_image_id) ||
tp->HasCustomImage(IDR_THEME_FRAME))
? *tp->GetImageSkiaNamed(frame_image_id)
« 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