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 33e92f308671bbb2df226bd88832745915393862..7579dd4f98639b5a08bf99e76074ce871de962c0 100644 |
--- a/chrome/browser/extensions/extension_process_manager.cc |
+++ b/chrome/browser/extensions/extension_process_manager.cc |
@@ -112,6 +112,19 @@ ExtensionProcessManager::~ExtensionProcessManager() { |
DCHECK(background_hosts_.empty()); |
} |
+ExtensionHost* ExtensionProcessManager::CreateShellHost( |
+ const Extension* extension, |
+ const GURL& url) { |
+ DCHECK(extension); |
+ ExtensionHost* host = new ExtensionHost(extension, |
+ GetSiteInstanceForURL(url), |
+ url, |
+ chrome::VIEW_TYPE_APP_SHELL); |
+ host->CreateView(NULL); |
miket_OOO
2011/12/20 19:12:34
I wish ExtensionHost had something like CreateView
Mihai Parparita -not on Chrome
2012/01/04 22:46:46
Done.
|
+ OnExtensionHostCreated(host, false /* not a background host */); |
+ return host; |
+} |
+ |
ExtensionHost* ExtensionProcessManager::CreateViewHost( |
const Extension* extension, |
const GURL& url, |