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

Unified Diff: chrome/browser/user_style_sheet_watcher_factory.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 months 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/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 fb572fbb7b43493ce3f57a04418d7b5b57b9ffc8..a69f77e2a05a861cbd70a2b3c556d6dfc6b9a75c 100644
--- a/chrome/browser/user_style_sheet_watcher_factory.cc
+++ b/chrome/browser/user_style_sheet_watcher_factory.cc
@@ -14,7 +14,7 @@ scoped_refptr<UserStyleSheetWatcher>
UserStyleSheetWatcherFactory::GetForProfile(
Profile* profile) {
return static_cast<UserStyleSheetWatcher*>(
- GetInstance()->GetServiceForProfile(profile, true).get());
+ GetInstance()->GetServiceForBrowserContext(profile, true).get());
}
// static
@@ -23,14 +23,15 @@ UserStyleSheetWatcherFactory* UserStyleSheetWatcherFactory::GetInstance() {
}
UserStyleSheetWatcherFactory::UserStyleSheetWatcherFactory()
- : RefcountedProfileKeyedServiceFactory(
- "UserStyleSheetWatcher", ProfileDependencyManager::GetInstance()) {
+ : RefcountedBrowserContextKeyedServiceFactory(
+ "UserStyleSheetWatcher",
+ BrowserContextDependencyManager::GetInstance()) {
}
UserStyleSheetWatcherFactory::~UserStyleSheetWatcherFactory() {
}
-scoped_refptr<RefcountedProfileKeyedService>
+scoped_refptr<RefcountedBrowserContextKeyedService>
UserStyleSheetWatcherFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
Profile* profile = static_cast<Profile*>(context);

Powered by Google App Engine
This is Rietveld 408576698