Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Unified Diff: content/public/browser/web_contents_delegate.cc

Issue 11824050: InstantExtended: Committed NTP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use WebContentsDelegate for focusing omnibox by default. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/web_contents_delegate.cc
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
index 9a2a95030bb6c0820407a1821f968872dcf3bb62..3b385e35a2b6346b1f1ae68534dff176f0b4a3c8 100644
--- a/content/public/browser/web_contents_delegate.cc
+++ b/content/public/browser/web_contents_delegate.cc
@@ -55,6 +55,10 @@ void WebContentsDelegate::BeforeUnloadFired(WebContents* web_contents,
*proceed_to_fire_unload = true;
}
+bool WebContentsDelegate::ShouldFocusLocationBarByDefault(WebContents* source) {
+ return false;
+}
+
bool WebContentsDelegate::ShouldFocusPageAfterCrash() {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698