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

Unified Diff: chrome/browser/ui/views/location_bar/page_info_helper.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/page_info_helper.cc
diff --git a/chrome/browser/ui/views/location_bar/page_info_helper.cc b/chrome/browser/ui/views/location_bar/page_info_helper.cc
index 1da950ed1c22358c67ce1caca424bcdc9c38ecd1..df9ecbe048cc337f032d7cc2f08b25fb85783240 100644
--- a/chrome/browser/ui/views/location_bar/page_info_helper.cc
+++ b/chrome/browser/ui/views/location_bar/page_info_helper.cc
@@ -5,7 +5,6 @@
#include "chrome/browser/ui/views/location_bar/page_info_helper.h"
#include "chrome/browser/ui/omnibox/omnibox_view.h"
-#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
@@ -31,7 +30,7 @@ void PageInfoHelper::ProcessEvent(const ui::LocatedEvent& event) {
if (location_bar_->GetLocationEntry()->IsEditingOrEmpty())
return;
- WebContents* tab = location_bar_->GetTabContents()->web_contents();
+ WebContents* tab = location_bar_->GetWebContents();
const NavigationController& controller = tab->GetController();
NavigationEntry* nav_entry = controller.GetActiveEntry();
if (!nav_entry) {

Powered by Google App Engine
This is Rietveld 408576698