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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 9977021: Add ExtensionSytem::Get(Profile*) as a wrapper around (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index c6783aeb2777d8719271e1c4849961af5e7c7310..076f27d1f50784c7d29898a95219750c64111297 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -440,19 +440,19 @@ ExtensionPrefValueMap* TestingProfile::GetExtensionPrefValueMap() {
}
ExtensionService* TestingProfile::GetExtensionService() {
- return ExtensionSystemFactory::GetForProfile(this)->extension_service();
+ return ExtensionSystem::Get(this)->extension_service();
}
UserScriptMaster* TestingProfile::GetUserScriptMaster() {
- return ExtensionSystemFactory::GetForProfile(this)->user_script_master();
+ return ExtensionSystem::Get(this)->user_script_master();
}
ExtensionProcessManager* TestingProfile::GetExtensionProcessManager() {
- return ExtensionSystemFactory::GetForProfile(this)->process_manager();
+ return ExtensionSystem::Get(this)->process_manager();
}
ExtensionEventRouter* TestingProfile::GetExtensionEventRouter() {
- return ExtensionSystemFactory::GetForProfile(this)->event_router();
+ return ExtensionSystem::Get(this)->event_router();
}
void TestingProfile::SetExtensionSpecialStoragePolicy(
@@ -548,7 +548,7 @@ net::URLRequestContextGetter* TestingProfile::GetRequestContext() {
net::URLRequestContextGetter* TestingProfile::GetRequestContextForRenderProcess(
int renderer_child_id) {
ExtensionService* extension_service =
- ExtensionSystemFactory::GetForProfile(this)->extension_service();
+ ExtensionSystem::Get(this)->extension_service();
if (extension_service) {
const Extension* installed_app = extension_service->
GetInstalledAppForRenderer(renderer_child_id);

Powered by Google App Engine
This is Rietveld 408576698