Chromium Code Reviews

Unified Diff: chrome/browser/user_style_sheet_watcher_factory.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/user_style_sheet_watcher_factory.cc
diff --git a/chrome/browser/user_style_sheet_watcher_factory.cc b/chrome/browser/user_style_sheet_watcher_factory.cc
index f0f6b9299467ed272f83b1272874bce373c1c89f..64367fc8dc8d8a3fa11c313305f677788db1378c 100644
--- a/chrome/browser/user_style_sheet_watcher_factory.cc
+++ b/chrome/browser/user_style_sheet_watcher_factory.cc
@@ -30,7 +30,9 @@ UserStyleSheetWatcherFactory::~UserStyleSheetWatcherFactory() {
}
scoped_refptr<RefcountedProfileKeyedService>
-UserStyleSheetWatcherFactory::BuildServiceInstanceFor(Profile* profile) const {
+UserStyleSheetWatcherFactory::BuildServiceInstanceFor(
+ content::BrowserContext* context) const {
+ Profile* profile = static_cast<Profile*>(context);
scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher(
new UserStyleSheetWatcher(profile, profile->GetPath()));
user_style_sheet_watcher->Init();
« no previous file with comments | « chrome/browser/user_style_sheet_watcher_factory.h ('k') | chrome/browser/webdata/web_data_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine