Index: chrome/browser/extensions/extension_install_ui.cc |
diff --git a/chrome/browser/extensions/extension_install_ui.cc b/chrome/browser/extensions/extension_install_ui.cc |
index af2dbd49c430f6d04fb2ac2521f3cf6f94dc1031..6fc8368a76a9cc660cca9a579b24a039bc43cd8b 100644 |
--- a/chrome/browser/extensions/extension_install_ui.cc |
+++ b/chrome/browser/extensions/extension_install_ui.cc |
@@ -24,7 +24,6 @@ |
#include "chrome/browser/ui/browser_list.h" |
#include "chrome/browser/ui/browser_window.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/extensions/extension_icon_set.h" |
#include "chrome/common/extensions/extension_resource.h" |
@@ -71,7 +70,8 @@ void ShowAppInstalledAnimation(Browser* browser, const std::string& app_id) { |
// automatically show the install animation for any new apps. |
for (int i = 0; i < browser->tab_count(); ++i) { |
GURL url = browser->GetTabContentsAt(i)->GetURL(); |
- if (web_ui_util::ChromeURLHostEquals(url, chrome::kChromeUINewTabHost)) { |
+ if (url.SchemeIs(chrome::kChromeUIScheme) && |
+ url.host() == chrome::kChromeUINewTabHost) { |
browser->ActivateTabAt(i, false); |
return; |
} |