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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm

Issue 1492423003: Rejigger ThemeService: move exposure of ThemeProvider interface to a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes? Created 5 years 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/tab_contents/tab_contents_controller.mm
diff --git a/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm b/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
index 9945572cfb4820ca03a73dc4827ac8ceb980e1c6..4fd6138c5e70ce9daa4fcddcf92ffc424a25ad5b 100644
--- a/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
+++ b/chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.mm
@@ -109,8 +109,7 @@ class FullscreenObserver : public WebContentsObserver {
// windows or opening new tabs), so ensure that the flash be the theme
// background color in those cases.
NSColor* backgroundColor = nil;
- ThemeService* const theme =
- static_cast<ThemeService*>([[self window] themeProvider]);
+ ui::ThemeProvider* const theme = [[self window] themeProvider];
if (theme)
backgroundColor = theme->GetNSColor(ThemeProperties::COLOR_NTP_BACKGROUND);
if (!backgroundColor)

Powered by Google App Engine
This is Rietveld 408576698