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

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

Issue 1638063003: [MD] Remove new incognito styling from guest mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
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 a42ea33ac29cb6c305287d467cc21aaf599ba760..334a8e4aa837d2b8e6a5425f7c97a4f3904a13a2 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
@@ -68,8 +68,10 @@ ui::NativeTheme* GetNativeThemeForWindow(aura::Window* window) {
// it also encompasses dialogs.
bool eligible_for_otr = window->type() == ui::wm::WINDOW_TYPE_CONTROL ||
BrowserView::GetBrowserViewForNativeWindow(window);
- if (eligible_for_otr && profile->IsOffTheRecord())
+ if (eligible_for_otr &&
+ profile->GetProfileType() == Profile::INCOGNITO_PROFILE) {
return ui::NativeThemeDarkAura::instance();
+ }
return ui::NativeThemeAura::instance();
}

Powered by Google App Engine
This is Rietveld 408576698