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

Unified Diff: chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm

Issue 244893004: Improve some naming (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac and win Created 6 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/cocoa/profiles/avatar_button_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
index 5c568a27cadf621480e6bc448fe57ca53ff8095e..93810f3afe2b1c0b23f10836a811a60c807f3217 100644
--- a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
@@ -120,7 +120,7 @@ NSImage* GetImageFromResourceID(int resourceId) {
if ((self = [super initWithBrowser:browser])) {
ThemeService* themeService =
ThemeServiceFactory::GetForProfile(browser->profile());
- isThemedWindow_ = !themeService->UsingNativeTheme();
+ isThemedWindow_ = !themeService->UsingSystemTheme();
HoverImageButton* hoverButton =
[[HoverImageButton alloc] initWithFrame:NSZeroRect];
@@ -169,7 +169,7 @@ NSImage* GetImageFromResourceID(int resourceId) {
// Redraw the button if the window has switched between themed and native.
ThemeService* themeService =
ThemeServiceFactory::GetForProfile(browser_->profile());
- BOOL updatedIsThemedWindow = !themeService->UsingNativeTheme();
+ BOOL updatedIsThemedWindow = !themeService->UsingSystemTheme();
if (isThemedWindow_ != updatedIsThemedWindow) {
isThemedWindow_ = updatedIsThemedWindow;
[[button_ cell] setIsThemedWindow:isThemedWindow_];
« no previous file with comments | « chrome/browser/ui/cocoa/download/background_theme.mm ('k') | chrome/browser/ui/extensions/extension_install_ui_default.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698