diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-23 22:21:43 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-23 22:21:43 +0000 |
commit | 0aa477bd3cd906e880891fd2e9f4739a53270a7f (patch) | |
tree | f78ab46e2bd5aca2812755d3240fd8cf4e83c8f5 /chrome/browser/views | |
parent | 1d437b64e1aaf11827962de62694bcb806265d00 (diff) | |
download | chromium_src-0aa477bd3cd906e880891fd2e9f4739a53270a7f.zip chromium_src-0aa477bd3cd906e880891fd2e9f4739a53270a7f.tar.gz chromium_src-0aa477bd3cd906e880891fd2e9f4739a53270a7f.tar.bz2 |
Initial rev at a message passing API for extensions. So far, only passing
messages to the extension process is supported.
Review URL: http://codereview.chromium.org/48090
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12319 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r-- | chrome/browser/views/bookmark_bar_view.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/views/bookmark_bar_view.cc b/chrome/browser/views/bookmark_bar_view.cc index ae6a0de..8542ab9 100644 --- a/chrome/browser/views/bookmark_bar_view.cc +++ b/chrome/browser/views/bookmark_bar_view.cc @@ -299,8 +299,8 @@ class ExtensionToolstrip : public views::View { public: static const int kPadding = 2; - ExtensionToolstrip(const GURL& url, Profile* profile) - : view_(new ExtensionView(url, profile)) { + ExtensionToolstrip(Extension* extension, const GURL& url, Profile* profile) + : view_(new ExtensionView(extension, url, profile)) { AddChildView(view_); set_border(views::Border::CreateEmptyBorder( kPadding, kPadding, kPadding, kPadding)); @@ -1372,8 +1372,9 @@ bool BookmarkBarView::AddExtensionToolstrips(const ExtensionList* extensions) { for (std::vector<std::string>::const_iterator toolstrip = (*extension)->toolstrips().begin(); toolstrip != (*extension)->toolstrips().end(); ++toolstrip) { - ExtensionToolstrip* view = - new ExtensionToolstrip((*extension)->GetResourceURL(*toolstrip), + ExtensionToolstrip* view = + new ExtensionToolstrip(*extension, + (*extension)->GetResourceURL(*toolstrip), profile_); int index = GetBookmarkButtonCount() + num_extension_toolstrips_; AddChildView(index, view); |