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

Issue 11884037: InstantExtended: Bail on TemplateURLs with no espv. (Closed)

Created:
7 years, 11 months ago by Jered
Modified:
7 years, 11 months ago
CC:
chromium-reviews, dhollowa+watch_chromium.org
Visibility:
Public.

Description

InstantExtended: Bail on TemplateURLs with no espv. During our field trial, some users saw InstantExtended enabled in Chrome but not on the server. We think this is because they had TemplateURLs pinned to old values which did not support the &espv parameter. This bails out of Extended mode if that parameter is not supported. BUG=166167 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177333

Patch Set 1 #

Total comments: 2

Patch Set 2 : Braces. #

Total comments: 7

Patch Set 3 : Address comments. #

Total comments: 8

Patch Set 4 : Fallback to offline. #

Total comments: 4

Patch Set 5 : Split out edited check. #

Total comments: 2

Patch Set 6 : Fix comment. #

Patch Set 7 : Fix browsertest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M chrome/browser/instant/instant_browsertest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url.h View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Jered
Please review.
7 years, 11 months ago (2013-01-14 22:51:41 UTC) #1
Jered
+beaudoin@ FYI in case this conflicts with search term extraction somehow.
7 years, 11 months ago (2013-01-14 23:21:48 UTC) #2
samarth
Note that search_model.cc has a DCHECK for getting called when extended API is disabled. Does ...
7 years, 11 months ago (2013-01-14 23:37:03 UTC) #3
Jered
On 2013/01/14 23:37:03, samarth wrote: > Note that search_model.cc has a DCHECK for getting called ...
7 years, 11 months ago (2013-01-14 23:48:26 UTC) #4
Jered
https://codereview.chromium.org/11884037/diff/1/chrome/browser/search_engines/template_url.cc File chrome/browser/search_engines/template_url.cc (right): https://codereview.chromium.org/11884037/diff/1/chrome/browser/search_engines/template_url.cc#newcode473 chrome/browser/search_engines/template_url.cc:473: for (size_t i = 0; i < replacements_.size(); ++i) ...
7 years, 11 months ago (2013-01-14 23:57:27 UTC) #5
beaudoin
Some ideas on how to reuse the non-Google-specific code already in TemplateURL. https://codereview.chromium.org/11884037/diff/1007/chrome/browser/search_engines/template_url.cc File chrome/browser/search_engines/template_url.cc ...
7 years, 11 months ago (2013-01-15 00:34:55 UTC) #6
Jered
Some questions for you beaudoin@ https://codereview.chromium.org/11884037/diff/1007/chrome/browser/search_engines/template_url.cc File chrome/browser/search_engines/template_url.cc (right): https://codereview.chromium.org/11884037/diff/1007/chrome/browser/search_engines/template_url.cc#newcode476 chrome/browser/search_engines/template_url.cc:476: } On 2013/01/15 00:34:55, ...
7 years, 11 months ago (2013-01-15 19:06:28 UTC) #7
dhollowa
https://codereview.chromium.org/11884037/diff/1007/chrome/browser/search_engines/template_url.h File chrome/browser/search_engines/template_url.h (right): https://codereview.chromium.org/11884037/diff/1007/chrome/browser/search_engines/template_url.h#newcode141 chrome/browser/search_engines/template_url.h:141: bool HasGoogleInstantExtendedParam() const; On 2013/01/15 19:06:28, Jered wrote: > ...
7 years, 11 months ago (2013-01-15 19:18:55 UTC) #8
beaudoin
On 2013/01/15 19:18:55, dhollowa wrote: > https://codereview.chromium.org/11884037/diff/1007/chrome/browser/search_engines/template_url.h > File chrome/browser/search_engines/template_url.h (right): > > https://codereview.chromium.org/11884037/diff/1007/chrome/browser/search_engines/template_url.h#newcode141 > ...
7 years, 11 months ago (2013-01-15 19:56:42 UTC) #9
Jered
On 2013/01/15 19:56:42, beaudoin wrote: > On 2013/01/15 19:18:55, dhollowa wrote: > > > https://codereview.chromium.org/11884037/diff/1007/chrome/browser/search_engines/template_url.h ...
7 years, 11 months ago (2013-01-15 22:23:05 UTC) #10
samarth
On 2013/01/14 23:48:26, Jered wrote: > On 2013/01/14 23:37:03, samarth wrote: > > Note that ...
7 years, 11 months ago (2013-01-15 23:57:15 UTC) #11
Jered
On 2013/01/15 23:57:15, samarth wrote: > On 2013/01/14 23:48:26, Jered wrote: > > On 2013/01/14 ...
7 years, 11 months ago (2013-01-16 02:30:52 UTC) #12
Jered
On 2013/01/16 02:30:52, Jered wrote: > On 2013/01/15 23:57:15, samarth wrote: > > On 2013/01/14 ...
7 years, 11 months ago (2013-01-16 02:40:31 UTC) #13
beaudoin
LGTM, with one question/simplification. https://codereview.chromium.org/11884037/diff/11001/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/11884037/diff/11001/chrome/browser/ui/search/search.cc#newcode37 chrome/browser/ui/search/search.cc:37: return template_url->HasSearchTermsReplacementKey(GURL(search_url)); Couldn't we assume ...
7 years, 11 months ago (2013-01-16 14:52:27 UTC) #14
sky
As previously mentioned in the other thread, I don't think we should trust the instant ...
7 years, 11 months ago (2013-01-16 15:49:15 UTC) #15
dhollowa
On 2013/01/16 02:30:52, Jered wrote: > On 2013/01/15 23:57:15, samarth wrote: > > On 2013/01/14 ...
7 years, 11 months ago (2013-01-16 17:29:54 UTC) #16
dhollowa
https://codereview.chromium.org/11884037/diff/11001/chrome/browser/ui/search/search_unittest.cc File chrome/browser/ui/search/search_unittest.cc (right): https://codereview.chromium.org/11884037/diff/11001/chrome/browser/ui/search/search_unittest.cc#newcode84 chrome/browser/ui/search/search_unittest.cc:84: ASSERT_TRUE(TemplateURLServiceFactory::GetForProfile(test_util.profile())-> nit: ASSERT_NE(static_cast<...>(NULL), TemplateURLService...); https://codereview.chromium.org/11884037/diff/11001/chrome/browser/ui/search/search_unittest.cc#newcode101 chrome/browser/ui/search/search_unittest.cc:101: "{google:instantExtendedEnabledParameter}"; This wouldn't ...
7 years, 11 months ago (2013-01-16 17:30:05 UTC) #17
Jered
+sreeram for instant After discussing with sreeram@, I've changed strategy here. Instead of completely bailing ...
7 years, 11 months ago (2013-01-16 18:37:28 UTC) #18
samarth
lgtm Ah, much better this way. https://codereview.chromium.org/11884037/diff/14005/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11884037/diff/14005/chrome/browser/instant/instant_controller.cc#newcode1197 chrome/browser/instant/instant_controller.cc:1197: (!template_url->safe_for_autoreplace() || Not ...
7 years, 11 months ago (2013-01-16 19:08:06 UTC) #19
dhollowa
lgtm
7 years, 11 months ago (2013-01-16 19:25:36 UTC) #20
sreeram
lgtm https://codereview.chromium.org/11884037/diff/14005/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11884037/diff/14005/chrome/browser/instant/instant_controller.cc#newcode1197 chrome/browser/instant/instant_controller.cc:1197: (!template_url->safe_for_autoreplace() || On 2013/01/16 19:08:06, samarth wrote: > ...
7 years, 11 months ago (2013-01-16 19:47:24 UTC) #21
Jered
https://codereview.chromium.org/11884037/diff/11001/chrome/browser/ui/search/search.cc File chrome/browser/ui/search/search.cc (right): https://codereview.chromium.org/11884037/diff/11001/chrome/browser/ui/search/search.cc#newcode37 chrome/browser/ui/search/search.cc:37: return template_url->HasSearchTermsReplacementKey(GURL(search_url)); On 2013/01/16 14:52:27, beaudoin wrote: > Couldn't ...
7 years, 11 months ago (2013-01-16 21:27:03 UTC) #22
sky
LGTM - and I think you should work with ux to detect this situation and ...
7 years, 11 months ago (2013-01-16 22:24:05 UTC) #23
Jered
Thanks for reviewing. https://codereview.chromium.org/11884037/diff/24001/chrome/browser/instant/instant_controller.cc File chrome/browser/instant/instant_controller.cc (right): https://codereview.chromium.org/11884037/diff/24001/chrome/browser/instant/instant_controller.cc#newcode1194 chrome/browser/instant/instant_controller.cc:1194: // correct (since it is not ...
7 years, 11 months ago (2013-01-16 22:49:10 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jered@chromium.org/11884037/27001
7 years, 11 months ago (2013-01-16 22:53:13 UTC) #25
beaudoin
On 2013/01/16 22:53:13, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 11 months ago (2013-01-16 23:14:20 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jered@chromium.org/11884037/15005
7 years, 11 months ago (2013-01-16 23:47:50 UTC) #27
commit-bot: I haz the power
7 years, 11 months ago (2013-01-17 03:33:50 UTC) #28
Message was sent while issue was closed.
Change committed as 177333

Powered by Google App Engine
This is Rietveld 408576698