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

Unified Diff: chrome/browser/search/search.cc

Issue 14043009: Fall back to local page if online NTP fails to load. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 7 years, 8 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: chrome/browser/search/search.cc
diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
index ba0820034c10d4e72a5531096e2dc58eae104b0b..477ea95fea01c6091cd1fc4e64188eea8b493299 100644
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -160,8 +160,7 @@ bool IsInstantURL(const GURL& url, Profile* profile) {
GURL effective_url = url;
if (IsCommandLineInstantURL(url))
- effective_url = CoerceCommandLineURLToTemplateURL(url, instant_url_ref,
- kDisableStartMargin);
+ return true;
samarth 2013/04/30 17:10:33 I assume this was for debugging. (Shouldn't be nec
David Black 2013/04/30 23:09:08 No, this is necessary, as that URL otherwise doesn
samarth 2013/05/01 06:26:47 In that case, you should change Coerce... to also
David Black 2013/05/02 00:49:45 Search term extraction still does work. It's only
if (!effective_url.is_valid())
return false;
« no previous file with comments | « no previous file | chrome/browser/ui/search/instant_controller.h » ('j') | chrome/browser/ui/search/instant_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698