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

Unified Diff: chrome/browser/history/shortcuts_backend_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/history/shortcuts_backend_factory.cc
diff --git a/chrome/browser/history/shortcuts_backend_factory.cc b/chrome/browser/history/shortcuts_backend_factory.cc
index 6496224bc437b125d863c250c4eecc8b22565b76..e532455f45066bca776fe6caf79ab7193ba1e555 100644
--- a/chrome/browser/history/shortcuts_backend_factory.cc
+++ b/chrome/browser/history/shortcuts_backend_factory.cc
@@ -16,14 +16,14 @@ using history::ShortcutsBackend;
scoped_refptr<ShortcutsBackend> ShortcutsBackendFactory::GetForProfile(
Profile* profile) {
return static_cast<ShortcutsBackend*>(
- GetInstance()->GetServiceForProfile(profile, true).get());
+ GetInstance()->GetServiceForBrowserContext(profile, true).get());
}
// static
scoped_refptr<ShortcutsBackend> ShortcutsBackendFactory::GetForProfileIfExists(
Profile* profile) {
return static_cast<ShortcutsBackend*>(
- GetInstance()->GetServiceForProfile(profile, false).get());
+ GetInstance()->GetServiceForBrowserContext(profile, false).get());
}
// static
@@ -32,7 +32,7 @@ ShortcutsBackendFactory* ShortcutsBackendFactory::GetInstance() {
}
// static
-scoped_refptr<RefcountedProfileKeyedService>
+scoped_refptr<RefcountedBrowserContextKeyedService>
ShortcutsBackendFactory::BuildProfileForTesting(
content::BrowserContext* profile) {
scoped_refptr<history::ShortcutsBackend> backend(
@@ -43,7 +43,7 @@ ShortcutsBackendFactory::BuildProfileForTesting(
}
// static
-scoped_refptr<RefcountedProfileKeyedService>
+scoped_refptr<RefcountedBrowserContextKeyedService>
ShortcutsBackendFactory::BuildProfileNoDatabaseForTesting(
content::BrowserContext* profile) {
scoped_refptr<history::ShortcutsBackend> backend(
@@ -54,14 +54,14 @@ ShortcutsBackendFactory::BuildProfileNoDatabaseForTesting(
}
ShortcutsBackendFactory::ShortcutsBackendFactory()
- : RefcountedProfileKeyedServiceFactory(
+ : RefcountedBrowserContextKeyedServiceFactory(
"ShortcutsBackend",
- ProfileDependencyManager::GetInstance()) {
+ BrowserContextDependencyManager::GetInstance()) {
}
ShortcutsBackendFactory::~ShortcutsBackendFactory() {}
-scoped_refptr<RefcountedProfileKeyedService>
+scoped_refptr<RefcountedBrowserContextKeyedService>
ShortcutsBackendFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
scoped_refptr<history::ShortcutsBackend> backend(

Powered by Google App Engine
This is Rietveld 408576698