| Index: chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc
|
| diff --git a/chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc b/chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc
|
| index eca7168a8f59585999f19927e095319ba5ab9e66..68ea2e4e198b8dafd9c3362507c0412bee90d187 100644
|
| --- a/chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc
|
| +++ b/chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc
|
| @@ -30,14 +30,8 @@
|
| namespace {
|
|
|
| ui::NativeTheme* GetNativeThemeForWindow(aura::Window* window) {
|
| - if (!window)
|
| - return nullptr;
|
| -
|
| Profile* profile = nullptr;
|
| - // Window types not listed here (such as tooltips) will never use Chrome
|
| - // theming.
|
| - if (window->type() == ui::wm::WINDOW_TYPE_NORMAL ||
|
| - window->type() == ui::wm::WINDOW_TYPE_POPUP) {
|
| + if (window) {
|
| profile = reinterpret_cast<Profile*>(
|
| window->GetNativeWindowProperty(Profile::kProfileKey));
|
| }
|
|
|