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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 7448012: Create the correct SiteInstance when restoring tabs that belong to apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch Created 9 years, 5 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 | « no previous file | chrome/browser/tab_contents/tab_util.h » ('j') | chrome/browser/tab_contents/tab_util.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ca207f23a4046c98e23259b8ad451afe5b345a59..dc56a97c60507172d9082c96f5876d559b0009f9 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -83,7 +83,6 @@ void InitRenderViewHostForExtensions(RenderViewHost* render_view_host) {
// chrome-extension:// URL for their site, so we can ignore that wrinkle here.
SiteInstance* site_instance = render_view_host->site_instance();
const GURL& site = site_instance->site();
- RenderProcessHost* process = render_view_host->process();
if (!site.SchemeIs(chrome::kExtensionScheme))
return;
@@ -110,6 +109,8 @@ void InitRenderViewHostForExtensions(RenderViewHost* render_view_host) {
process_manager->RegisterExtensionSiteInstance(site_instance->id(),
extension->id());
+ RenderProcessHost* process = render_view_host->process();
Charlie Reis 2011/07/19 21:38:28 Is this change still necessary?
+
if (extension->is_app()) {
render_view_host->Send(
new ExtensionMsg_ActivateApplication(extension->id()));
« no previous file with comments | « no previous file | chrome/browser/tab_contents/tab_util.h » ('j') | chrome/browser/tab_contents/tab_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698