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

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

Issue 10119003: Pull shell window stuff out of ExtensionHost and put in ShellWindow (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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/base_extension_host.cc
diff --git a/chrome/browser/extensions/base_extension_host.cc b/chrome/browser/extensions/base_extension_host.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8c190ab3039b126b4e5c390531ea822d1d854485
--- /dev/null
+++ b/chrome/browser/extensions/base_extension_host.cc
@@ -0,0 +1,27 @@
+// 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.
+
+#include "chrome/browser/extensions/base_extension_host.h"
+
+#include "chrome/browser/ui/browser.h"
+
+BaseExtensionHost::~BaseExtensionHost() {}
+
+void BaseExtensionHost::CreateView(Browser* browser) {
+#if defined(TOOLKIT_VIEWS)
+ view_.reset(new ExtensionView(this, browser));
+ // We own |view_|, so don't auto delete when it's removed from the view
+ // hierarchy.
+ view_->set_parent_owned(false);
+#elif defined(OS_MACOSX)
+ view_.reset(new ExtensionViewMac(this, browser));
+ view_->Init();
+#elif defined(TOOLKIT_GTK)
+ view_.reset(new ExtensionViewGtk(this, browser));
+ view_->Init();
+#else
+ // TODO(port)
+ NOTREACHED();
+#endif
+}

Powered by Google App Engine
This is Rietveld 408576698