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

Unified Diff: chrome/test/testing_profile.cc

Issue 6880089: Don't hold the installed app in BrowserProcessRenderHost, since that's in content layer now. Ext... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix browser tests Created 9 years, 8 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
« no previous file with comments | « chrome/test/testing_profile.h ('k') | content/browser/renderer_host/browser_render_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/testing_profile.cc
===================================================================
--- chrome/test/testing_profile.cc (revision 82593)
+++ chrome/test/testing_profile.cc (working copy)
@@ -553,10 +553,14 @@
return request_context_.get();
}
-net::URLRequestContextGetter* TestingProfile::GetRequestContextForPossibleApp(
- const Extension* installed_app) {
- if (installed_app != NULL && installed_app->is_storage_isolated())
- return GetRequestContextForIsolatedApp(installed_app->id());
+net::URLRequestContextGetter* TestingProfile::GetRequestContextForRenderProcess(
+ int renderer_child_id) {
+ if (extension_service_.get()) {
+ const Extension* installed_app = extension_service_->
+ GetInstalledAppForRenderer(renderer_child_id);
+ if (installed_app != NULL && installed_app->is_storage_isolated())
+ return GetRequestContextForIsolatedApp(installed_app->id());
+ }
return GetRequestContext();
}
« no previous file with comments | « chrome/test/testing_profile.h ('k') | content/browser/renderer_host/browser_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698