Index: chrome/browser/ui/browser.cc |
=================================================================== |
--- chrome/browser/ui/browser.cc (revision 193436) |
+++ chrome/browser/ui/browser.cc (working copy) |
@@ -149,6 +149,7 @@ |
#include "chrome/common/profiling.h" |
#include "chrome/common/search_types.h" |
#include "chrome/common/startup_metric_utils.h" |
+#include "chrome/common/url_constants.h" |
#include "chrome/common/web_apps.h" |
#include "content/public/browser/color_chooser.h" |
#include "content/public/browser/devtools_manager.h" |
@@ -1400,6 +1401,12 @@ |
bool Browser::ShouldFocusLocationBarByDefault(WebContents* source) { |
const content::NavigationEntry* entry = |
source->GetController().GetActiveEntry(); |
+ if (entry && |
+ entry->GetURL().SchemeIs(chrome::kChromeUIScheme) && |
+ entry->GetURL().host() == chrome::kChromeUINewTabHost) { |
+ return true; |
+ } |
+ |
return chrome::NavEntryIsInstantNTP(source, entry); |
} |