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

Unified Diff: chrome/browser/extensions/extension_process_manager.cc

Issue 164458: Land http://codereview.chromium.org/159067: (Closed)
Patch Set: undo docs Created 11 years, 4 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 | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/renderer_host/render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_process_manager.cc
diff --git a/chrome/browser/extensions/extension_process_manager.cc b/chrome/browser/extensions/extension_process_manager.cc
index 0a362a487c533e85682adac12771478eb5bd808e..acf43af477f661bc67a26c6ca3ec853cbb3f32dd 100644
--- a/chrome/browser/extensions/extension_process_manager.cc
+++ b/chrome/browser/extensions/extension_process_manager.cc
@@ -56,7 +56,8 @@ ExtensionHost* ExtensionProcessManager::CreateView(Extension* extension,
DCHECK(extension);
DCHECK(browser);
ExtensionHost* host =
- new ExtensionHost(extension, GetSiteInstanceForURL(url), url);
+ new ExtensionHost(extension, GetSiteInstanceForURL(url), url,
+ ViewType::EXTENSION_TOOLSTRIP);
host->CreateView(browser);
OnExtensionHostCreated(host, false);
return host;
@@ -78,7 +79,8 @@ ExtensionHost* ExtensionProcessManager::CreateView(const GURL& url,
ExtensionHost* ExtensionProcessManager::CreateBackgroundHost(
Extension* extension, const GURL& url) {
ExtensionHost* host =
- new ExtensionHost(extension, GetSiteInstanceForURL(url), url);
+ new ExtensionHost(extension, GetSiteInstanceForURL(url), url,
+ ViewType::EXTENSION_BACKGROUND_PAGE);
host->CreateRenderView(NULL); // create a RenderViewHost with no view
OnExtensionHostCreated(host, true);
return host;
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/renderer_host/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698