summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/bookmark_bar_view.cc
diff options
context:
space:
mode:
authormpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 19:33:20 +0000
committermpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 19:33:20 +0000
commit45904e20797f8cd28a776ed0e40ba94dc4eef97e (patch)
tree00b15cd6207f993e9553313202801702b3f7b250 /chrome/browser/views/bookmark_bar_view.cc
parent1cb5fbed08b85c459288c98d63cf7c3158f519a2 (diff)
downloadchromium_src-45904e20797f8cd28a776ed0e40ba94dc4eef97e.zip
chromium_src-45904e20797f8cd28a776ed0e40ba94dc4eef97e.tar.gz
chromium_src-45904e20797f8cd28a776ed0e40ba94dc4eef97e.tar.bz2
Introducing ExtensionProcessManager. This manages the ExtensionViews to
ensure there is only 1 process per extension. I also changed ExtensionMessageService from singleton to one instance per Profile. This means messages can only be passed to extensions and scripts within the same profile. Review URL: http://codereview.chromium.org/62132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13447 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_bar_view.cc')
-rw-r--r--chrome/browser/views/bookmark_bar_view.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/views/bookmark_bar_view.cc b/chrome/browser/views/bookmark_bar_view.cc
index 36eaa3d..2c41482 100644
--- a/chrome/browser/views/bookmark_bar_view.cc
+++ b/chrome/browser/views/bookmark_bar_view.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/browser.h"
#include "chrome/browser/drag_utils.h"
#include "chrome/browser/extensions/extension.h"
+#include "chrome/browser/extensions/extension_process_manager.h"
#include "chrome/browser/extensions/extension_view.h"
#include "chrome/browser/extensions/extensions_service.h"
#include "chrome/browser/metrics/user_metrics.h"
@@ -300,7 +301,8 @@ class ExtensionToolstrip : public views::View {
static const int kPadding = 2;
ExtensionToolstrip(Extension* extension, const GURL& url, Profile* profile)
- : view_(new ExtensionView(extension, url, profile)) {
+ : view_(ExtensionProcessManager::GetInstance()->CreateView(
+ extension, url, profile)) {
AddChildView(view_);
set_border(views::Border::CreateEmptyBorder(
kPadding, kPadding, kPadding, kPadding));