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

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

Issue 2879493005: [Merge to M59] Linux Aura: Use incognito profile to theme incognito browser windows (Closed)
Patch Set: Created 3 years, 7 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/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 4d3c09b477956c13a90c0dd7994103300574c09c..b59715083bcb8c8ffb8c91573f25bccb3936047a 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -157,7 +157,6 @@
#endif // !defined(OS_CHROMEOS)
#if defined(USE_AURA)
-#include "chrome/browser/ui/views/theme_profile_key.h"
#include "ui/aura/client/window_parenting_client.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
@@ -2080,13 +2079,6 @@ void BrowserView::InitViews() {
GetWidget()->SetNativeWindowProperty(Profile::kProfileKey,
browser_->profile());
-#if defined(USE_AURA)
- // Stow a pointer to the browser's original profile onto the window handle so
- // that windows will be styled with the appropriate NativeTheme.
- SetThemeProfileForWindow(GetNativeWindow(),
- browser_->profile()->GetOriginalProfile());
-#endif
-
LoadAccelerators();
contents_web_view_ = new ContentsWebView(browser_->profile());

Powered by Google App Engine
This is Rietveld 408576698