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

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: Fix style. 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') | no next file with comments »
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 c2f46ad2e92a0636387896c85cc32a18753b9447..16456aaeb3a3e1e38c39dbba69d0855cff6322bc 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();
+
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698