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

Issue 272573004: Handle TemplateURLService load failure better, and make some test correctness fixes that will be ne… (Closed)

Created:
6 years, 7 months ago by erikwright (departed)
Modified:
6 years, 7 months ago
CC:
chromium-reviews, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, dominich, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, James Su, Jered
Visibility:
Public.

Description

Handle TemplateURLService load failure better, and make some test correctness fixes that will be needed later. This also does a variety of miscellaneous cleanups to the modified files. BUG=364183 TEST=none R=jered@chromium.org, pkasting@chromium.org TBR=engedy Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269329 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269716

Patch Set 1 #

Patch Set 2 : Fix some other test failures. #

Patch Set 3 : Fix a regression. #

Patch Set 4 : Rebase. #

Total comments: 9

Patch Set 5 : Review feedback. #

Total comments: 9

Patch Set 6 : Review comments. #

Total comments: 14

Patch Set 7 : Review comments. #

Patch Set 8 : Rebase after revert / presubmit fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -339 lines) Patch
M chrome/browser/autocomplete/base_search_provider.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/profile_resetter/profile_resetter.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search/instant_service.h View 1 2 3 4 5 6 5 chunks +29 lines, -27 lines 0 comments Download
M chrome/browser/search/instant_service.cc View 1 2 3 4 5 6 9 chunks +64 lines, -90 lines 0 comments Download
M chrome/browser/search/instant_service_observer.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/search/instant_service_observer.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/search/instant_service_unittest.cc View 1 2 3 4 5 4 chunks +33 lines, -18 lines 0 comments Download
M chrome/browser/search/instant_unittest_base.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/search/instant_unittest_base.cc View 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/search_engines/default_search_pref_migration_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url.h View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url.cc View 1 2 3 4 5 6 7 2 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.h View 5 chunks +17 lines, -12 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 22 chunks +135 lines, -148 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_instant_controller.h View 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 6 5 chunks +6 lines, -19 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller_unittest.cc View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
erikwright (departed)
pkasting, jered: PTAL. This CL should be considered the official one now as I have ...
6 years, 7 months ago (2014-05-08 14:06:16 UTC) #1
erikwright (departed)
engedy: FYI. This will now do a more thorough check to see if the TemplateURL ...
6 years, 7 months ago (2014-05-08 14:10:55 UTC) #2
Peter Kasting
https://codereview.chromium.org/272573004/diff/80001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/272573004/diff/80001/chrome/browser/search/instant_service.cc#newcode59 chrome/browser/search/instant_service.cc:59: template_url_service_(TemplateURLServiceFactory::GetForProfile(profile_)), I purposefully didn't do this in order to ...
6 years, 7 months ago (2014-05-08 18:23:36 UTC) #3
erikwright (departed)
https://codereview.chromium.org/272573004/diff/80001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/272573004/diff/80001/chrome/browser/search/instant_service.cc#newcode59 chrome/browser/search/instant_service.cc:59: template_url_service_(TemplateURLServiceFactory::GetForProfile(profile_)), On 2014/05/08 18:23:37, Peter Kasting wrote: > I ...
6 years, 7 months ago (2014-05-08 18:26:00 UTC) #4
Peter Kasting
On 2014/05/08 18:26:00, erikwright wrote: > https://codereview.chromium.org/272573004/diff/80001/chrome/browser/search/instant_service.cc > File chrome/browser/search/instant_service.cc (right): > > https://codereview.chromium.org/272573004/diff/80001/chrome/browser/search/instant_service.cc#newcode59 > ...
6 years, 7 months ago (2014-05-08 18:43:04 UTC) #5
erikwright (departed)
> > No. InstantServiceFactory declares a dependency on TemplateURLService. As a >> > result, the ...
6 years, 7 months ago (2014-05-08 18:54:07 UTC) #6
erikwright (departed)
pkasting: PTAL. https://codereview.chromium.org/272573004/diff/80001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/272573004/diff/80001/chrome/browser/search/instant_service.cc#newcode93 chrome/browser/search/instant_service.cc:93: instant_io_context_ = new InstantIOContext(); On 2014/05/08 18:23:37, ...
6 years, 7 months ago (2014-05-08 19:23:11 UTC) #7
Peter Kasting
https://codereview.chromium.org/272573004/diff/80001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/272573004/diff/80001/chrome/browser/search/instant_service.cc#newcode412 chrome/browser/search/instant_service.cc:412: if (!chrome::ShouldPrefetchSearchResults()) On 2014/05/08 19:23:11, erikwright wrote: > On ...
6 years, 7 months ago (2014-05-08 20:17:40 UTC) #8
Jered
https://codereview.chromium.org/272573004/diff/100001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/272573004/diff/100001/chrome/browser/search/instant_service.cc#newcode68 chrome/browser/search/instant_service.cc:68: if (template_url_service_) { When would this be null? Should ...
6 years, 7 months ago (2014-05-08 20:20:04 UTC) #9
Peter Kasting
https://codereview.chromium.org/272573004/diff/100001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/272573004/diff/100001/chrome/browser/search/instant_service.cc#newcode68 chrome/browser/search/instant_service.cc:68: if (template_url_service_) { On 2014/05/08 20:20:05, Jered wrote: > ...
6 years, 7 months ago (2014-05-08 20:40:04 UTC) #10
erikwright (departed)
Replied to review comments. PTAL. https://codereview.chromium.org/272573004/diff/100001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/272573004/diff/100001/chrome/browser/search/instant_service.cc#newcode68 chrome/browser/search/instant_service.cc:68: if (template_url_service_) { On ...
6 years, 7 months ago (2014-05-08 20:52:58 UTC) #11
Jered
lgtm stamp for search--but please address Peter's test comment before submitting. https://codereview.chromium.org/272573004/diff/100001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): ...
6 years, 7 months ago (2014-05-08 21:02:24 UTC) #12
Peter Kasting
LGTM https://codereview.chromium.org/272573004/diff/140001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/272573004/diff/140001/chrome/browser/search/instant_service.cc#newcode62 chrome/browser/search/instant_service.cc:62: // Stub for unit tests. Nit: While here: ...
6 years, 7 months ago (2014-05-08 21:04:40 UTC) #13
erikwright (departed)
https://codereview.chromium.org/272573004/diff/140001/chrome/browser/ui/browser_instant_controller.cc File chrome/browser/ui/browser_instant_controller.cc (right): https://codereview.chromium.org/272573004/diff/140001/chrome/browser/ui/browser_instant_controller.cc#newcode145 chrome/browser/ui/browser_instant_controller.cc:145: // is still valid. On 2014/05/08 21:04:41, Peter Kasting ...
6 years, 7 months ago (2014-05-08 21:07:23 UTC) #14
Jered
slgtm https://codereview.chromium.org/272573004/diff/140001/chrome/browser/ui/browser_instant_controller.cc File chrome/browser/ui/browser_instant_controller.cc (right): https://codereview.chromium.org/272573004/diff/140001/chrome/browser/ui/browser_instant_controller.cc#newcode145 chrome/browser/ui/browser_instant_controller.cc:145: // is still valid. On 2014/05/08 21:07:24, erikwright ...
6 years, 7 months ago (2014-05-08 21:12:37 UTC) #15
erikwright (departed)
The CQ bit was checked by erikwright@chromium.org
6 years, 7 months ago (2014-05-09 00:46:14 UTC) #16
erikwright (departed)
FYI: Nits addressed. In CQ. https://codereview.chromium.org/272573004/diff/140001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/272573004/diff/140001/chrome/browser/search/instant_service.cc#newcode62 chrome/browser/search/instant_service.cc:62: // Stub for unit ...
6 years, 7 months ago (2014-05-09 00:46:42 UTC) #17
erikwright (departed)
TBR engedy@ who already reviewed this content in a different CL.
6 years, 7 months ago (2014-05-09 00:48:39 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/272573004/160001
6 years, 7 months ago (2014-05-09 00:50:12 UTC) #19
erikwright (departed)
Committed patchset #7 manually as r269329 (presubmit successful).
6 years, 7 months ago (2014-05-09 16:33:54 UTC) #20
Alpha Left Google
A revert of this CL has been created in https://codereview.chromium.org/273153004/ by hclam@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-10 21:06:06 UTC) #21
erikwright (departed)
On 2014/05/10 21:06:06, Alpha wrote: > A revert of this CL has been created in ...
6 years, 7 months ago (2014-05-11 18:01:59 UTC) #22
erikwright (departed)
The CQ bit was checked by erikwright@chromium.org
6 years, 7 months ago (2014-05-11 18:05:20 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/272573004/180001
6 years, 7 months ago (2014-05-11 18:05:25 UTC) #24
commit-bot: I haz the power
6 years, 7 months ago (2014-05-11 19:48:55 UTC) #25
Message was sent while issue was closed.
Change committed as 269716

Powered by Google App Engine
This is Rietveld 408576698