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

Unified Diff: chrome/browser/extensions/api/autotest_private/autotest_private_api.cc

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 10 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/extensions/api/autotest_private/autotest_private_api.cc
diff --git a/chrome/browser/extensions/api/autotest_private/autotest_private_api.cc b/chrome/browser/extensions/api/autotest_private/autotest_private_api.cc
index b727950fee30563b34fba7ff289dd2b9e847f08d..1121318f6907be8c9e37cf6034dc1a759b041fb6 100644
--- a/chrome/browser/extensions/api/autotest_private/autotest_private_api.cc
+++ b/chrome/browser/extensions/api/autotest_private/autotest_private_api.cc
@@ -61,9 +61,7 @@ base::ListValue* GetAPIPermissions(const Extension* ext) {
}
bool IsTestMode(Profile* profile) {
- return AutotestPrivateAPI::GetFactoryInstance()
- ->GetForProfile(profile)
- ->test_mode();
+ return AutotestPrivateAPI::GetFactoryInstance()->Get(profile)->test_mode();
}
} // namespace
@@ -227,18 +225,18 @@ bool AutotestPrivateSimulateAsanMemoryBugFunction::RunImpl() {
return true;
}
-static base::LazyInstance<ProfileKeyedAPIFactory<AutotestPrivateAPI> >
+static base::LazyInstance<BrowserContextKeyedAPIFactory<AutotestPrivateAPI> >
g_factory = LAZY_INSTANCE_INITIALIZER;
// static
-ProfileKeyedAPIFactory<AutotestPrivateAPI>*
+BrowserContextKeyedAPIFactory<AutotestPrivateAPI>*
AutotestPrivateAPI::GetFactoryInstance() {
return g_factory.Pointer();
}
template <>
BrowserContextKeyedService*
-ProfileKeyedAPIFactory<AutotestPrivateAPI>::BuildServiceInstanceFor(
+BrowserContextKeyedAPIFactory<AutotestPrivateAPI>::BuildServiceInstanceFor(
content::BrowserContext* context) const {
return new AutotestPrivateAPI();
}

Powered by Google App Engine
This is Rietveld 408576698