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

Unified Diff: content/browser/tab_contents/render_view_host_manager.cc

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add ChromeURLRequestContext::Copy. Created 9 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: content/browser/tab_contents/render_view_host_manager.cc
diff --git a/content/browser/tab_contents/render_view_host_manager.cc b/content/browser/tab_contents/render_view_host_manager.cc
index b46ea7caa53375246c461dfd42bbd26eb38aeb0f..47bae3d1a9d1efc11392870a259e2323ea2dc9ff 100644
--- a/content/browser/tab_contents/render_view_host_manager.cc
+++ b/content/browser/tab_contents/render_view_host_manager.cc
@@ -485,11 +485,16 @@ bool RenderViewHostManager::InitRenderView(RenderViewHost* render_view_host,
if (pending_web_ui_.get())
render_view_host->AllowBindings(pending_web_ui_->bindings());
- // Tell the RenderView whether it will be used for an extension process.
+ // Tell the RenderView whether it will be used for an extension process or an
+ // installed app.
Profile* profile = delegate_->GetControllerForRenderManager().profile();
- bool is_extension_process = profile->GetExtensionService() &&
- profile->GetExtensionService()->ExtensionBindingsAllowed(entry.url());
- render_view_host->set_is_extension_process(is_extension_process);
+ ExtensionService* service = profile->GetExtensionService();
+ if (service) {
+ bool is_extension_process = service->ExtensionBindingsAllowed(entry.url());
+ render_view_host->set_is_extension_process(is_extension_process);
+ const Extension* installed_app = service->GetInstalledApp(entry.url());
+ render_view_host->set_installed_app(installed_app);
+ }
return delegate_->CreateRenderViewForRenderManager(render_view_host);
}

Powered by Google App Engine
This is Rietveld 408576698