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(); |