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

Unified Diff: chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc

Issue 9015022: Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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/gtk/omnibox/omnibox_view_gtk.cc
===================================================================
--- chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc (revision 116109)
+++ chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc (working copy)
@@ -58,6 +58,8 @@
#include "chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h"
#endif
+using content::WebContents;
+
namespace {
const gchar* kOmniboxViewGtkKey = "__OMNIBOX_VIEW_GTK__";
@@ -1586,8 +1588,8 @@
break;
}
case ui::CHROME_NAMED_URL: {
- TabContents* current_tab =
- BrowserList::GetLastActive()->GetSelectedTabContents();
+ WebContents* current_tab =
+ BrowserList::GetLastActive()->GetSelectedWebContents();
string16 tab_title = current_tab->GetTitle();
// Pass an empty string if user has edited the URL.
if (current_tab->GetURL().spec() != dragged_text_)
« no previous file with comments | « chrome/browser/ui/gtk/gtk_util.cc ('k') | chrome/browser/ui/intents/web_intent_picker_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698