Index: chrome/browser/tabs/tab_strip_model.cc |
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc |
index de8df7ff8a0a1c3618d3afb7c5f844aec280eaec..40f7d60303284116769074c99fb9edb0eafb2631 100644 |
--- a/chrome/browser/tabs/tab_strip_model.cc |
+++ b/chrome/browser/tabs/tab_strip_model.cc |
@@ -22,7 +22,6 @@ |
#include "chrome/browser/tabs/tab_strip_model_delegate.h" |
#include "chrome/browser/tabs/tab_strip_model_order_controller.h" |
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
-#include "chrome/browser/ui/webui/web_ui_util.h" |
#include "chrome/common/extensions/extension.h" |
#include "chrome/common/url_constants.h" |
#include "content/browser/renderer_host/render_process_host.h" |
@@ -1104,9 +1103,10 @@ std::vector<int> TabStripModel::GetIndicesForCommand(int index) const { |
bool TabStripModel::IsNewTabAtEndOfTabStrip( |
TabContentsWrapper* contents) const { |
const GURL& url = contents->tab_contents()->GetURL(); |
- return web_ui_util::ChromeURLHostEquals(url, chrome::kChromeUINewTabHost) && |
- contents == GetContentsAt(count() - 1) && |
- contents->controller().entry_count() == 1; |
+ return url.SchemeIs(chrome::kChromeUIScheme) && |
+ url.host() == chrome::kChromeUINewTabHost && |
+ contents == GetContentsAt(count() - 1) && |
+ contents->controller().entry_count() == 1; |
} |
bool TabStripModel::InternalCloseTabs(const std::vector<int>& in_indices, |