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

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

Issue 8985008: Don't use browser windows for platform app shell windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable PlatformAppBrowserTest.AppWithContextMenu on Windows Created 8 years, 12 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/extensions/extension_process_manager.cc
diff --git a/chrome/browser/extensions/extension_process_manager.cc b/chrome/browser/extensions/extension_process_manager.cc
index 5d3ffb8cee059e2c8700aea3d8167ce34082cd11..9cf644ccf8f8fe20514ebd2e16689957003605bc 100644
--- a/chrome/browser/extensions/extension_process_manager.cc
+++ b/chrome/browser/extensions/extension_process_manager.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -115,6 +115,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->CreateViewWithoutBrowser();
+ OnExtensionHostCreated(host, false /* not a background host */);
+ return host;
+}
+
ExtensionHost* ExtensionProcessManager::CreateViewHost(
const Extension* extension,
const GURL& url,

Powered by Google App Engine
This is Rietveld 408576698