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

Unified Diff: chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc

Issue 1438513003: [MD] Implement incognito colors as a NativeTheme (for Aura). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win, linux, android compiles issues Created 5 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/chrome_views_delegate.h » ('j') | ui/native_theme/BUILD.gn » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc
diff --git a/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc b/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc
index 4c6949c15ab418ab0b4b4b161533ee76907a265d..be382ef907130a8e2dfda897d8813fda899e787f 100644
--- a/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc
+++ b/chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc
@@ -26,6 +26,7 @@
#include "ui/aura/window.h"
#include "ui/base/ime/input_method_initializer.h"
#include "ui/native_theme/native_theme_aura.h"
+#include "ui/native_theme/native_theme_aura_dark.h"
#include "ui/views/linux_ui/linux_ui.h"
#endif
@@ -56,8 +57,10 @@ ui::NativeTheme* GetNativeThemeForWindow(aura::Window* window) {
window->GetNativeWindowProperty(Profile::kProfileKey));
}
- if (profile && !profile->GetPrefs()->GetBoolean(prefs::kUsesSystemTheme))
- return ui::NativeThemeAura::instance();
+ if (profile && !profile->GetPrefs()->GetBoolean(prefs::kUsesSystemTheme)) {
+ return profile->IsOffTheRecord() ? ui::NativeThemeAuraDark::instance()
+ : ui::NativeThemeAura::instance();
+ }
return nullptr;
}
« no previous file with comments | « no previous file | chrome/browser/ui/views/chrome_views_delegate.h » ('j') | ui/native_theme/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698