Index: chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc |
=================================================================== |
--- chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc (revision 145001) |
+++ chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc (working copy) |
@@ -22,6 +22,7 @@ |
#include "chrome/browser/instant/instant_controller.h" |
#include "chrome/browser/platform_util.h" |
#include "chrome/browser/ui/browser.h" |
+#include "chrome/browser/ui/browser_tabstrip.h" |
#include "chrome/browser/ui/gtk/gtk_theme_service.h" |
#include "chrome/browser/ui/gtk/gtk_util.h" |
#include "chrome/browser/ui/gtk/location_bar_view_gtk.h" |
@@ -1481,7 +1482,7 @@ |
break; |
} |
case ui::CHROME_NAMED_URL: { |
- WebContents* current_tab = browser_->GetActiveWebContents(); |
+ WebContents* current_tab = chrome::GetActiveWebContents(browser_); |
string16 tab_title = current_tab->GetTitle(); |
// Pass an empty string if user has edited the URL. |
if (current_tab->GetURL().spec() != dragged_text_) |