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

Unified Diff: chrome/browser/ui/views/location_bar/page_action_image_view.cc

Issue 10917026: Switch Extensions::TabHelper to use WebContents, WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 8 years, 3 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/ui/views/location_bar/page_action_image_view.cc
diff --git a/chrome/browser/ui/views/location_bar/page_action_image_view.cc b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
index 031a482f532f0748a217a939baa1a230c525c8f5..3f84aec52953414608670169d193c5252eb93c18 100644
--- a/chrome/browser/ui/views/location_bar/page_action_image_view.cc
+++ b/chrome/browser/ui/views/location_bar/page_action_image_view.cc
@@ -132,8 +132,10 @@ void PageActionImageView::ExecuteAction(
if (!tab_contents)
return;
+ extensions::TabHelper* extensions_tab_helper =
+ extensions::TabHelper::FromWebContents(tab_contents->web_contents());
LocationBarController* controller =
- tab_contents->extension_tab_helper()->location_bar_controller();
+ extensions_tab_helper->location_bar_controller();
switch (controller->OnClicked(page_action_->extension_id(), 1)) {
case LocationBarController::ACTION_NONE:

Powered by Google App Engine
This is Rietveld 408576698