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

Unified Diff: chrome/browser/ui/views/exclusive_access_bubble_views.cc

Issue 1461923002: Change name of NativeTheme::instance() to make it clear it's web only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NATIVE_THEME_EXPORT for mac 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
Index: chrome/browser/ui/views/exclusive_access_bubble_views.cc
diff --git a/chrome/browser/ui/views/exclusive_access_bubble_views.cc b/chrome/browser/ui/views/exclusive_access_bubble_views.cc
index 720e006b17745679cebcbbb720ed2df65096c0c8..d6018160e8a7551db1bd81d11d4ea85e69af022e 100644
--- a/chrome/browser/ui/views/exclusive_access_bubble_views.cc
+++ b/chrome/browser/ui/views/exclusive_access_bubble_views.cc
@@ -213,7 +213,8 @@ ExclusiveAccessBubbleViews::ExclusiveAccessView::ExclusiveAccessView(
if (ExclusiveAccessManager::IsSimplifiedFullscreenUIEnabled())
shadow_type = views::BubbleBorder::NO_ASSETS;
- ui::NativeTheme* theme = ui::NativeTheme::instance();
+ // TODO(estade): don't use this static instance. See http://crbug.com/558162
+ ui::NativeTheme* theme = ui::NativeTheme::GetInstanceForWeb();
SkColor background_color =
ExclusiveAccessManager::IsSimplifiedFullscreenUIEnabled()
? SkColorSetA(SK_ColorBLACK, kBackgroundOpacity)
« no previous file with comments | « chrome/browser/ui/sync/profile_signin_confirmation_helper.cc ('k') | chrome/browser/ui/views/profiles/profile_chooser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698