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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor to use ContentBrowserClient. Created 9 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/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 0c2502cd8bf417889816a020e7e361c6e55775c3..da6f45a413f681810ce56d1648a7afabe00abed1 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/extensions/extension_service.h"
+#include "chrome/browser/renderer_host/browser_render_process_host.h"
#include "content/browser/renderer_host/render_view_host.h"
namespace chrome {
@@ -19,6 +20,10 @@ void ChromeContentBrowserClient::OnRenderViewCreation(
if (service) {
bool is_extension_process = service->ExtensionBindingsAllowed(url);
render_view_host->set_is_extension_process(is_extension_process);
+
+ const Extension* installed_app = service->GetInstalledApp(url);
+ static_cast<BrowserRenderProcessHost*>(render_view_host->process())->
Matt Perry 2011/03/15 00:40:56 this cast seems sketchy. Why not make SetInstalled
Charlie Reis 2011/03/15 06:23:42 John wants to remove all Extension references from
Matt Perry 2011/03/15 18:00:37 Ah sorry, I didn't realize RPH had moved to conten
+ set_installed_app(installed_app);
}
}

Powered by Google App Engine
This is Rietveld 408576698