| 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 5f7dd2b56b09acccaad0d625ae6fdb99b2cacca2..19c68bcd37b3684481919d2e69f4e1e3f28b93bd 100644
|
| --- a/chrome/browser/ui/views/frame/browser_view.cc
|
| +++ b/chrome/browser/ui/views/frame/browser_view.cc
|
| @@ -153,6 +153,7 @@
|
| #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"
|
| @@ -2079,6 +2080,12 @@ void BrowserView::InitViews() {
|
| GetWidget()->SetNativeWindowProperty(Profile::kProfileKey,
|
| browser_->profile());
|
|
|
| +#if defined(USE_AURA)
|
| + // Stow a pointer to the browser's profile onto the window handle so
|
| + // that windows will be styled with the appropriate NativeTheme.
|
| + SetThemeProfileForWindow(GetNativeWindow(), browser_->profile());
|
| +#endif
|
| +
|
| LoadAccelerators();
|
|
|
| contents_web_view_ = new ContentsWebView(browser_->profile());
|
|
|