| Index: chrome/browser/profiles/profile_impl.cc
|
| ===================================================================
|
| --- chrome/browser/profiles/profile_impl.cc (revision 82593)
|
| +++ chrome/browser/profiles/profile_impl.cc (working copy)
|
| @@ -869,13 +869,15 @@
|
| return request_context;
|
| }
|
|
|
| -net::URLRequestContextGetter* ProfileImpl::GetRequestContextForPossibleApp(
|
| - const Extension* installed_app) {
|
| +net::URLRequestContextGetter* ProfileImpl::GetRequestContextForRenderProcess(
|
| + int renderer_child_id) {
|
| if (CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnableExperimentalAppManifests) &&
|
| - installed_app != NULL &&
|
| - installed_app->is_storage_isolated())
|
| - return GetRequestContextForIsolatedApp(installed_app->id());
|
| + switches::kEnableExperimentalAppManifests)) {
|
| + 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();
|
| }
|
|
|