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

Unified Diff: chrome/browser/profiles/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: '' 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
Index: chrome/browser/profiles/profile.cc
===================================================================
--- chrome/browser/profiles/profile.cc (revision 82344)
+++ chrome/browser/profiles/profile.cc (working copy)
@@ -21,6 +21,7 @@
#include "chrome/browser/extensions/extension_message_service.h"
#include "chrome/browser/extensions/extension_pref_store.h"
#include "chrome/browser/extensions/extension_process_manager.h"
+#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_special_storage_policy.h"
#include "chrome/browser/net/pref_proxy_config_service.h"
#include "chrome/browser/prefs/pref_service.h"
@@ -407,12 +408,14 @@
}
virtual net::URLRequestContextGetter* GetRequestContextForPossibleApp(
- const Extension* installed_app) {
+ 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 = GetExtensionService()->
+ GetInstalledAppForRenderer(renderer_child_id);
+ if (installed_app != NULL && installed_app->is_storage_isolated())
+ return GetRequestContextForIsolatedApp(installed_app->id());
+ }
return GetRequestContext();
}

Powered by Google App Engine
This is Rietveld 408576698