Index: chrome/browser/tabs/tab_strip_model.cc |
=================================================================== |
--- chrome/browser/tabs/tab_strip_model.cc (revision 88158) |
+++ chrome/browser/tabs/tab_strip_model.cc (working copy) |
@@ -22,6 +22,7 @@ |
#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" |
@@ -1103,10 +1104,9 @@ |
bool TabStripModel::IsNewTabAtEndOfTabStrip( |
TabContentsWrapper* contents) const { |
const GURL& url = contents->tab_contents()->GetURL(); |
- return url.SchemeIs(chrome::kChromeUIScheme) && |
- url.host() == chrome::kChromeUINewTabHost && |
- contents == GetContentsAt(count() - 1) && |
- contents->controller().entry_count() == 1; |
+ return web_ui_util::ChromeURLHostEquals(url, chrome::kChromeUINewTabHost) && |
+ contents == GetContentsAt(count() - 1) && |
+ contents->controller().entry_count() == 1; |
} |
bool TabStripModel::InternalCloseTabs(const std::vector<int>& in_indices, |