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

Unified Diff: chrome/browser/ui/cocoa/browser_window_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: fix that unittest 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/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 0e3879998bc7eaff58f1463c64029649aff29493..ee3004ed7c55621a74ee610522ca97702b01a969 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1546,8 +1546,11 @@ using content::WebContents;
}];
}
+// TODO(estade): change this function to return a const* or const& and remove
+// this cast.
- (ui::ThemeProvider*)themeProvider {
- return ThemeServiceFactory::GetForProfile(browser_->profile());
+ return const_cast<ui::ThemeProvider*>(
+ &ThemeService::GetThemeProviderForProfile(browser_->profile()));
}
- (ThemedWindowStyle)themedWindowStyle {
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_button.h ('k') | chrome/browser/ui/cocoa/gradient_button_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698