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

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

Issue 11418043: Remove TabContents from OmniboxEditController and friends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros Created 8 years, 1 month 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/web_intents_button_view.cc
diff --git a/chrome/browser/ui/views/location_bar/web_intents_button_view.cc b/chrome/browser/ui/views/location_bar/web_intents_button_view.cc
index 7af60f49116d726618cdf4a914fcfce1ffbf9407..603ac26d63b9c8e8d81bf8618f0ed430f8a336bc 100644
--- a/chrome/browser/ui/views/location_bar/web_intents_button_view.cc
+++ b/chrome/browser/ui/views/location_bar/web_intents_button_view.cc
@@ -5,7 +5,6 @@
#include "chrome/browser/ui/views/location_bar/web_intents_button_view.h"
#include "chrome/browser/ui/intents/web_intent_picker_controller.h"
-#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "grit/generated_resources.h"
#include "ui/base/animation/slide_animation.h"
@@ -22,10 +21,9 @@ WebIntentsButtonView::WebIntentsButtonView(LocationBarView* parent,
: LocationBarDecorationView(parent, background_images, font, font_color) {
}
-void WebIntentsButtonView::Update(TabContents* tab_contents) {
+void WebIntentsButtonView::Update(content::WebContents* web_contents) {
WebIntentPickerController* web_intent_picker_controller =
- tab_contents ? WebIntentPickerController::FromWebContents(
- tab_contents->web_contents())
+ web_contents ? WebIntentPickerController::FromWebContents(web_contents)
: NULL;
if (!web_intent_picker_controller ||
!web_intent_picker_controller->ShowLocationBarPickerButton()) {
@@ -49,11 +47,11 @@ void WebIntentsButtonView::Update(TabContents* tab_contents) {
}
void WebIntentsButtonView::OnClick(LocationBarView* parent) {
- TabContents* tab_contents = parent->GetTabContents();
- if (!tab_contents)
+ content::WebContents* web_contents = parent->GetWebContents();
+ if (!web_contents)
return;
- WebIntentPickerController::FromWebContents(tab_contents->web_contents())->
+ WebIntentPickerController::FromWebContents(web_contents)->
LocationBarPickerButtonClicked();
}
« no previous file with comments | « chrome/browser/ui/views/location_bar/web_intents_button_view.h ('k') | chrome/browser/ui/views/location_bar/zoom_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698