Index: chrome/browser/ui/gtk/browser_toolbar_gtk.cc |
diff --git a/chrome/browser/ui/gtk/browser_toolbar_gtk.cc b/chrome/browser/ui/gtk/browser_toolbar_gtk.cc |
index a401f54715a49f0b8a6b8da14e76e3b051befc4f..06238dd033803bfd6c305cc93c746fd749b2c5ee 100644 |
--- a/chrome/browser/ui/gtk/browser_toolbar_gtk.cc |
+++ b/chrome/browser/ui/gtk/browser_toolbar_gtk.cc |
@@ -35,7 +35,6 @@ |
#include "chrome/browser/ui/gtk/tabs/tab_strip_gtk.h" |
#include "chrome/browser/ui/gtk/view_id_util.h" |
#include "chrome/browser/ui/toolbar/encoding_menu_controller.h" |
-#include "chrome/browser/ui/webui/web_ui_util.h" |
#include "chrome/browser/upgrade_detector.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
@@ -607,8 +606,8 @@ void BrowserToolbarGtk::OnDragDataReceived(GtkWidget* widget, |
if (!url.is_valid()) |
return; |
- bool url_is_newtab = |
- web_ui_util::ChromeURLHostEquals(url, chrome::kChromeUINewTabHost); |
+ bool url_is_newtab = url.SchemeIs(chrome::kChromeUIScheme) && |
+ url.host() == chrome::kChromeUINewTabHost; |
home_page_is_new_tab_page_.SetValue(url_is_newtab); |
if (!url_is_newtab) |
home_page_.SetValue(url.spec()); |