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

Unified Diff: chrome/browser/ui/cocoa/spinner_view.mm

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/cocoa/spinner_view.mm
diff --git a/chrome/browser/ui/cocoa/spinner_view.mm b/chrome/browser/ui/cocoa/spinner_view.mm
index 0134050621d78595d5040852fc6797f2968d8d1e..69f7b0c33632ccaa8b46c9d5f54a3eb3d7e04a06 100644
--- a/chrome/browser/ui/cocoa/spinner_view.mm
+++ b/chrome/browser/ui/cocoa/spinner_view.mm
@@ -12,6 +12,7 @@
#include "skia/ext/skia_utils_mac.h"
#include "ui/base/theme_provider.h"
#include "ui/native_theme/native_theme.h"
+#include "ui/native_theme/native_theme_mac.h"
namespace {
const CGFloat kDegrees90 = (M_PI / 2);
@@ -117,7 +118,7 @@ NSString* const kRotationAnimationName = @"RotationAnimationName";
[shapeLayer_ setLineCap:kCALineCapRound];
[shapeLayer_ setLineDashPattern:@[ @(kArcLength * scaleFactor) ]];
[shapeLayer_ setFillColor:NULL];
- ui::NativeTheme* nativeTheme = ui::NativeTheme::instance();
+ ui::NativeTheme* nativeTheme = ui::NativeThemeMac::instance();
SkColor throbberBlueColor = nativeTheme->GetSystemColor(
ui::NativeTheme::kColorId_ThrobberSpinningColor);
CGColorRef blueColor = gfx::CGColorCreateFromSkColor(throbberBlueColor);

Powered by Google App Engine
This is Rietveld 408576698