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

Unified Diff: chrome/browser/google/google_url_tracker_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: 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/google/google_url_tracker_factory.cc
diff --git a/chrome/browser/google/google_url_tracker_factory.cc b/chrome/browser/google/google_url_tracker_factory.cc
index 3854344e0c706786adba09ac4c646fce1480801d..aebe7670556feb40a841228e9756e94c5de689e6 100644
--- a/chrome/browser/google/google_url_tracker_factory.cc
+++ b/chrome/browser/google/google_url_tracker_factory.cc
@@ -17,7 +17,7 @@
// static
GoogleURLTracker* GoogleURLTrackerFactory::GetForProfile(Profile* profile) {
return static_cast<GoogleURLTracker*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -26,14 +26,14 @@ GoogleURLTrackerFactory* GoogleURLTrackerFactory::GetInstance() {
}
GoogleURLTrackerFactory::GoogleURLTrackerFactory()
- : ProfileKeyedServiceFactory("GoogleURLTracker",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory("GoogleURLTracker",
+ BrowserContextDependencyManager::GetInstance()) {
}
GoogleURLTrackerFactory::~GoogleURLTrackerFactory() {
}
-ProfileKeyedService* GoogleURLTrackerFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* GoogleURLTrackerFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
scoped_ptr<GoogleURLTrackerNavigationHelper> nav_helper(
new GoogleURLTrackerNavigationHelperImpl());
@@ -58,7 +58,7 @@ content::BrowserContext* GoogleURLTrackerFactory::GetBrowserContextToUse(
return chrome::GetBrowserContextRedirectedInIncognito(context);
}
-bool GoogleURLTrackerFactory::ServiceIsCreatedWithProfile() const {
+bool GoogleURLTrackerFactory::ServiceIsCreatedWithBrowserContext() const {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698