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

Issue 263823007: Handle TemplateURLService load failure better (Closed)

Created:
6 years, 7 months ago by Peter Kasting
Modified:
6 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Handle TemplateURLService load failure better, and make some test correctness fixes that will be needed later. The test fixes in this were generally obtained from https://codereview.chromium.org/268643002/ . This also does a variety of miscellaneous cleanups to the modified files. BUG=364183 TEST=none

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Fix another test #

Patch Set 5 : Remove initial default copying #

Total comments: 4

Patch Set 6 : RemoveObserver #

Total comments: 17

Patch Set 7 : Notify on all DSP changes #

Patch Set 8 : More test fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -330 lines) Patch
M chrome/browser/autocomplete/base_search_provider.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profile_resetter/profile_resetter.cc View 1 2 3 4 5 6 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 +21 lines, -27 lines 0 comments Download
M chrome/browser/search/instant_service.cc View 1 2 3 4 5 6 7 9 chunks +58 lines, -88 lines 1 comment Download
M chrome/browser/search/instant_service_observer.h View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/search/instant_service_observer.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/search/instant_service_unittest.cc View 1 2 3 4 5 chunks +31 lines, -15 lines 0 comments Download
M chrome/browser/search/instant_unittest_base.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/search/instant_unittest_base.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/search_engines/default_search_pref_migration_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url.h View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url.cc View 1 2 3 4 5 6 2 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.h View 1 2 3 4 5 6 7 5 chunks +17 lines, -12 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 3 4 5 6 7 22 chunks +135 lines, -148 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.h View 1 2 3 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 2 3 4 5 6 5 chunks +6 lines, -19 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller_unittest.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
Peter Kasting
For a sample of the weirdness this addresses, see http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%281%29/builds/42833/steps/unit_tests/logs/BrowserViewLayout , which was triggered by ...
6 years, 7 months ago (2014-05-02 22:58:16 UTC) #1
erikwright (departed)
https://codereview.chromium.org/263823007/diff/1/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (left): https://codereview.chromium.org/263823007/diff/1/chrome/browser/search_engines/template_url_service.cc#oldcode633 chrome/browser/search_engines/template_url_service.cc:633: return ((!loaded_ || load_failed_) && Now that we copied ...
6 years, 7 months ago (2014-05-03 01:01:54 UTC) #2
Peter Kasting
+zea as a reviewer: Please review change to TemplateURLService::MergeDataAndStartSyncing() to ensure this is the correct ...
6 years, 7 months ago (2014-05-05 18:46:24 UTC) #3
Peter Kasting
Patch set 3 mainly differs from patch set 2 by adding a bunch more code ...
6 years, 7 months ago (2014-05-05 21:22:02 UTC) #4
Nicolas Zea
https://codereview.chromium.org/263823007/diff/40001/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): https://codereview.chromium.org/263823007/diff/40001/chrome/browser/search_engines/template_url_service.cc#newcode1275 chrome/browser/search_engines/template_url_service.cc:1275: if (load_failed_) { Under what conditions is the load ...
6 years, 7 months ago (2014-05-05 21:23:59 UTC) #5
erikwright (departed)
On 2014/05/05 21:23:59, Nicolas Zea wrote: > https://codereview.chromium.org/263823007/diff/40001/chrome/browser/search_engines/template_url_service.cc > File chrome/browser/search_engines/template_url_service.cc (right): > > https://codereview.chromium.org/263823007/diff/40001/chrome/browser/search_engines/template_url_service.cc#newcode1275 ...
6 years, 7 months ago (2014-05-05 21:26:40 UTC) #6
Peter Kasting
https://codereview.chromium.org/263823007/diff/40001/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): https://codereview.chromium.org/263823007/diff/40001/chrome/browser/search_engines/template_url_service.cc#newcode1275 chrome/browser/search_engines/template_url_service.cc:1275: if (load_failed_) { On 2014/05/05 21:23:59, Nicolas Zea wrote: ...
6 years, 7 months ago (2014-05-05 21:33:31 UTC) #7
Nicolas Zea
Sounds like this has the intended effect, so LGTM. I'm fine with the current approach ...
6 years, 7 months ago (2014-05-05 21:36:17 UTC) #8
Peter Kasting
On 2014/05/05 21:26:40, erikwright wrote: > A lot of this CL seems to be obviated ...
6 years, 7 months ago (2014-05-05 21:56:51 UTC) #9
erikwright (departed)
I think Robert's dream is that I solve this remaining Sync problem tonight and land ...
6 years, 7 months ago (2014-05-05 22:16:18 UTC) #10
Peter Kasting
On Mon, May 5, 2014 at 3:16 PM, Erik Wright <erikwright@chromium.org> wrote: > I think ...
6 years, 7 months ago (2014-05-05 22:22:19 UTC) #11
robertshield
On Mon, May 5, 2014 at 6:22 PM, Peter Kasting <pkasting@chromium.org> wrote: > On Mon, ...
6 years, 7 months ago (2014-05-05 22:29:06 UTC) #12
Peter Kasting
Patch set 4 aims to fix another test failure that occurred with both patch set ...
6 years, 7 months ago (2014-05-06 01:23:23 UTC) #13
Peter Kasting
OK, patch set 5 is hopefully a candidate to land. This removes the original reason ...
6 years, 7 months ago (2014-05-06 18:12:58 UTC) #14
erikwright (departed)
LGTM. The not writing to Prefs thing is up to you, I guess. It's not ...
6 years, 7 months ago (2014-05-06 19:48:02 UTC) #15
Peter Kasting
https://codereview.chromium.org/263823007/diff/80001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/263823007/diff/80001/chrome/browser/search/instant_service.cc#newcode75 chrome/browser/search/instant_service.cc:75: template_url_service->AddObserver(this); On 2014/05/06 19:48:02, erikwright wrote: > Should we ...
6 years, 7 months ago (2014-05-06 19:58:03 UTC) #16
erikwright (departed)
Hmm. Then why allow the user to change it at all? It will actually be ...
6 years, 7 months ago (2014-05-06 20:04:47 UTC) #17
Peter Kasting
On 2014/05/06 20:04:47, erikwright wrote: > Hmm. Then why allow the user to change it ...
6 years, 7 months ago (2014-05-06 20:09:04 UTC) #18
erikwright (departed)
OK. Does this also imply that no sync events should be sent either, in that ...
6 years, 7 months ago (2014-05-06 20:11:02 UTC) #19
Peter Kasting
On 2014/05/06 20:11:02, erikwright wrote: > OK. Does this also imply that no sync events ...
6 years, 7 months ago (2014-05-06 20:12:12 UTC) #20
Peter Kasting
+Jered as he may be able to review this sooner than Samarth
6 years, 7 months ago (2014-05-06 22:51:06 UTC) #21
Jered
Thanks for the cleanup, I have a couple questions so will need to study a ...
6 years, 7 months ago (2014-05-06 23:01:18 UTC) #22
Peter Kasting
https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (left): https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc#oldcode409 chrome/browser/search/instant_service.cc:409: void InstantService::OnGoogleURLUpdated( On 2014/05/06 23:01:18, Jered wrote: > Is ...
6 years, 7 months ago (2014-05-06 23:17:22 UTC) #23
Jered
https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (left): https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc#oldcode409 chrome/browser/search/instant_service.cc:409: void InstantService::OnGoogleURLUpdated( On 2014/05/06 23:17:23, Peter Kasting wrote: > ...
6 years, 7 months ago (2014-05-07 00:08:26 UTC) #24
Peter Kasting
https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (left): https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc#oldcode409 chrome/browser/search/instant_service.cc:409: void InstantService::OnGoogleURLUpdated( On 2014/05/07 00:08:27, Jered wrote: > On ...
6 years, 7 months ago (2014-05-07 00:20:17 UTC) #25
Jered
https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (left): https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc#oldcode409 chrome/browser/search/instant_service.cc:409: void InstantService::OnGoogleURLUpdated( On 2014/05/07 00:20:18, Peter Kasting wrote: > ...
6 years, 7 months ago (2014-05-07 00:47:03 UTC) #26
Peter Kasting
https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc#newcode406 chrome/browser/search/instant_service.cc:406: if (new_search_result_prefetch_base_url == On 2014/05/07 00:47:04, Jered wrote: > ...
6 years, 7 months ago (2014-05-07 00:50:27 UTC) #27
Jered
On 2014/05/07 00:50:27, Peter Kasting wrote: > https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc > File chrome/browser/search/instant_service.cc (right): > > https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc#newcode406 ...
6 years, 7 months ago (2014-05-07 00:53:07 UTC) #28
Peter Kasting
On 2014/05/07 00:53:07, Jered wrote: > This is actually much older code. When you change ...
6 years, 7 months ago (2014-05-07 00:57:14 UTC) #29
Jered
On 2014/05/07 00:57:14, Peter Kasting wrote: > On 2014/05/07 00:53:07, Jered wrote: > > This ...
6 years, 7 months ago (2014-05-07 00:58:38 UTC) #30
Peter Kasting
On 2014/05/07 00:58:38, Jered wrote: > On 2014/05/07 00:57:14, Peter Kasting wrote: > > On ...
6 years, 7 months ago (2014-05-07 01:01:39 UTC) #31
erikwright (departed)
https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc#newcode406 chrome/browser/search/instant_service.cc:406: if (new_search_result_prefetch_base_url == On 2014/05/07 00:50:27, Peter Kasting wrote: ...
6 years, 7 months ago (2014-05-07 18:40:01 UTC) #32
Peter Kasting
https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc#newcode406 chrome/browser/search/instant_service.cc:406: if (new_search_result_prefetch_base_url == On 2014/05/07 18:40:01, erikwright wrote: > ...
6 years, 7 months ago (2014-05-07 18:43:36 UTC) #33
erikwright (departed)
On 2014/05/07 18:43:36, Peter Kasting wrote: > https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc > File chrome/browser/search/instant_service.cc (right): > > https://codereview.chromium.org/263823007/diff/100001/chrome/browser/search/instant_service.cc#newcode406 ...
6 years, 7 months ago (2014-05-07 18:48:10 UTC) #34
Peter Kasting
On 2014/05/07 18:48:10, erikwright wrote: > Yeah, I was looking at that. But it seems ...
6 years, 7 months ago (2014-05-07 18:51:45 UTC) #35
Peter Kasting
New patch set up. This makes InstantService attempt to track the default search engine and ...
6 years, 7 months ago (2014-05-07 22:24:37 UTC) #36
Peter Kasting
The latest patch set fixes some of the previous set's test failures, especially relating to ...
6 years, 7 months ago (2014-05-08 01:24:58 UTC) #37
erikwright (departed)
https://codereview.chromium.org/263823007/diff/140001/chrome/browser/search/instant_service.cc File chrome/browser/search/instant_service.cc (right): https://codereview.chromium.org/263823007/diff/140001/chrome/browser/search/instant_service.cc#newcode75 chrome/browser/search/instant_service.cc:75: previous_default_search_provider_.reset( I'm going to guess that the test failures ...
6 years, 7 months ago (2014-05-08 02:00:00 UTC) #38
erikwright (departed)
I uploaded a CL identical to this but with the incognito bugs fixed. https://codereview.chromium.org/272573004
6 years, 7 months ago (2014-05-08 03:11:50 UTC) #39
samarth
Looks like Jered's on top of this. Removing myself. Thanks, Samarth
6 years, 7 months ago (2014-05-08 04:14:35 UTC) #40
erikwright (departed)
OK, There are still a few test failures with my version of this CL, but ...
6 years, 7 months ago (2014-05-08 05:46:48 UTC) #41
erikwright (departed)
This CL should be considered deprecated in favor of https://codereview.chromium.org/272573004 .
6 years, 7 months ago (2014-05-08 14:06:51 UTC) #42
Peter Kasting
6 years, 7 months ago (2014-05-08 18:23:56 UTC) #43
On 2014/05/08 14:06:51, erikwright wrote:
> This CL should be considered deprecated in favor of
> https://codereview.chromium.org/272573004 .

OK.  Closing.

Powered by Google App Engine
This is Rietveld 408576698