summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/location_bar_view.cc
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 20:21:58 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 20:21:58 +0000
commit4577622518be7c7ddd4f3b45016d4fa68d253802 (patch)
treee09db89fdb34063d7dcb6ffc013821792ab3f38e /chrome/browser/views/location_bar_view.cc
parent631d1ab9de83c531ca43b8134226eb247a4ee3aa (diff)
downloadchromium_src-4577622518be7c7ddd4f3b45016d4fa68d253802.zip
chromium_src-4577622518be7c7ddd4f3b45016d4fa68d253802.tar.gz
chromium_src-4577622518be7c7ddd4f3b45016d4fa68d253802.tar.bz2
Retrying this patch. This was already reviewed by mpcomplete and the
only change is a fix for the UI test that broke and a small change to event_bindings.cc (reviewed in-person). ExtensionFunctionDispatcher now notifies ExtensionProcessManager of renderviews created, which in turn notifies the renderer of page actions that it knows about. Remove generic event "page-action-executed" in favor of page action specific event (sent as extension_id/page_action_id). In the bindings, we now setup events for each page action we know about so we can register for specific events, and not receive broadcast events from all page actions. To setup these events I added a GetCurrentPageActions() to extension_process_bindings.cc and a helper function GetCurrentExtensionId(). And, finally, I simplified the page action background page by removing the check to see if we are already subscribed to the feed (since we now support multiple feed readers, it doesn't make sense anymore to always check Google Reader). This check might make a comeback later in a different form. TBR=mpcomplete BUG=13936 TEST=The RSS sample extension should work as before. Review URL: http://codereview.chromium.org/149683 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20782 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/location_bar_view.cc')
-rw-r--r--chrome/browser/views/location_bar_view.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/views/location_bar_view.cc b/chrome/browser/views/location_bar_view.cc
index eb6d629..d92b5b4 100644
--- a/chrome/browser/views/location_bar_view.cc
+++ b/chrome/browser/views/location_bar_view.cc
@@ -1277,7 +1277,8 @@ bool LocationBarView::PageActionImageView::OnMousePressed(
const views::MouseEvent& event) {
// Our PageAction icon was clicked on, notify proper authorities.
ExtensionBrowserEventRouter::GetInstance()->PageActionExecuted(
- profile_, page_action_->id(), current_tab_id_, current_url_.spec());
+ profile_, page_action_->extension_id(), page_action_->id(),
+ current_tab_id_, current_url_.spec());
return true;
}