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

Unified Diff: chrome/browser/ui/sync/profile_signin_confirmation_helper.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/sync/profile_signin_confirmation_helper.cc
diff --git a/chrome/browser/ui/sync/profile_signin_confirmation_helper.cc b/chrome/browser/ui/sync/profile_signin_confirmation_helper.cc
index 7934c49fe7ce109a62de53774e4efafd92ec9065..f27aa0ed73844c4d14d75ca8b43849800b76e5c4 100644
--- a/chrome/browser/ui/sync/profile_signin_confirmation_helper.cc
+++ b/chrome/browser/ui/sync/profile_signin_confirmation_helper.cc
@@ -43,10 +43,10 @@ bool HasBookmarks(Profile* profile) {
namespace ui {
-SkColor GetSigninConfirmationPromptBarColor(SkAlpha alpha) {
+SkColor GetSigninConfirmationPromptBarColor(ui::NativeTheme* theme,
+ SkAlpha alpha) {
static const SkColor kBackgroundColor =
- ui::NativeTheme::instance()->GetSystemColor(
- ui::NativeTheme::kColorId_DialogBackground);
+ theme->GetSystemColor(ui::NativeTheme::kColorId_DialogBackground);
return color_utils::BlendTowardOppositeLuminance(kBackgroundColor, alpha);
}
« no previous file with comments | « chrome/browser/ui/sync/profile_signin_confirmation_helper.h ('k') | chrome/browser/ui/views/exclusive_access_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698