Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 3b5ff7cd7f166174131e05e5337754e3d721b1b0..31873fe7355b0b6aa8b90fcb8c9f896b33ba555d 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -2018,7 +2018,9 @@ bool WebContentsImpl::FocusLocationBarByDefault() { |
if (web_ui) |
return web_ui->ShouldFocusLocationBarByDefault(); |
NavigationEntry* entry = controller_.GetActiveEntry(); |
- return (entry && entry->GetURL() == GURL(chrome::kAboutBlankURL)); |
+ if (entry && entry->GetURL() == GURL(chrome::kAboutBlankURL)) |
+ return true; |
+ return delegate_ && delegate_->ShouldFocusLocationBarByDefault(this); |
} |
void WebContentsImpl::SetFocusToLocationBar(bool select_all) { |