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

Issue 1770843002: SuggestionsService: implement SyncServiceObserver (Closed)

Created:
4 years, 9 months ago by Marc Treib
Modified:
4 years, 9 months ago
CC:
blundell+watchlist_chromium.org, chromium-reviews, David Black, dhollowa+watch_chromium.org, donnd+watch_chromium.org, dougw+watch_chromium.org, droger+watchlist_chromium.org, Jered, jfweitz+watch_chromium.org, kmadhusu+watch_chromium.org, melevin+watch_chromium.org, samarth+watch_chromium.org, sdefresne+watchlist_chromium.org, skanuj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SuggestionsService: implement SyncServiceObserver so that its clients don't have to. Also remove a bunch of null checks on SuggestionsService - SuggestionsServiceFactory::GetForProfile will never return null. BUG=591973 Committed: https://crrev.com/16070ce69cfb26481240995705c8a1a206fd829c Cr-Commit-Position: refs/heads/master@{#380603}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 4

Patch Set 4 : fix #

Patch Set 5 : fix2 #

Total comments: 10

Patch Set 6 : rebase #

Patch Set 7 : iOS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+416 lines, -447 lines) Patch
M chrome/browser/android/most_visited_sites.h View 5 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/android/most_visited_sites.cc View 1 2 3 4 10 chunks +40 lines, -66 lines 0 comments Download
M chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc View 1 2 3 4 5 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/search/instant_service.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/search/instant_service.cc View 5 chunks +10 lines, -21 lines 0 comments Download
M chrome/browser/search/instant_service_factory.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/search/suggestions/suggestions_service_factory.cc View 2 chunks +14 lines, -9 lines 0 comments Download
M chrome/browser/search/suggestions/suggestions_source.cc View 2 chunks +3 lines, -13 lines 0 comments Download
D chrome/browser/search/suggestions/suggestions_utils.h View 1 chunk +0 lines, -19 lines 0 comments Download
D chrome/browser/search/suggestions/suggestions_utils.cc View 1 chunk +0 lines, -23 lines 0 comments Download
M chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc View 1 3 chunks +5 lines, -17 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M components/suggestions.gypi View 2 chunks +1 line, -2 lines 0 comments Download
M components/suggestions/BUILD.gn View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M components/suggestions/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/suggestions/suggestions_service.h View 1 2 3 4 9 chunks +51 lines, -38 lines 0 comments Download
M components/suggestions/suggestions_service.cc View 1 2 3 4 8 chunks +99 lines, -53 lines 0 comments Download
M components/suggestions/suggestions_service_unittest.cc View 1 29 chunks +154 lines, -110 lines 0 comments Download
D components/suggestions/suggestions_utils.h View 1 chunk +0 lines, -40 lines 0 comments Download
D components/suggestions/suggestions_utils.cc View 1 chunk +0 lines, -22 lines 0 comments Download
M ios/chrome/browser/suggestions/suggestions_service_factory.mm View 1 2 3 4 5 6 5 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 40 (13 generated)
Marc Treib
PTAL!
4 years, 9 months ago (2016-03-07 20:35:24 UTC) #2
Marc Treib
https://codereview.chromium.org/1770843002/diff/40001/chrome/browser/android/most_visited_sites.cc File chrome/browser/android/most_visited_sites.cc (left): https://codereview.chromium.org/1770843002/diff/40001/chrome/browser/android/most_visited_sites.cc#oldcode456 chrome/browser/android/most_visited_sites.cc:456: // Suggestions service is enabled, initiate a query. I ...
4 years, 9 months ago (2016-03-07 20:44:14 UTC) #3
Mathieu
I like it! suggestions/ lgtm with a question https://codereview.chromium.org/1770843002/diff/80001/components/suggestions/suggestions_service.cc File components/suggestions/suggestions_service.cc (right): https://codereview.chromium.org/1770843002/diff/80001/components/suggestions/suggestions_service.cc#newcode375 components/suggestions/suggestions_service.cc:375: IssueRequestIfNoneOngoing(BuildSuggestionsURL()); ...
4 years, 9 months ago (2016-03-08 14:52:34 UTC) #4
Marc Treib
https://codereview.chromium.org/1770843002/diff/80001/components/suggestions/suggestions_service.cc File components/suggestions/suggestions_service.cc (right): https://codereview.chromium.org/1770843002/diff/80001/components/suggestions/suggestions_service.cc#newcode375 components/suggestions/suggestions_service.cc:375: IssueRequestIfNoneOngoing(BuildSuggestionsURL()); On 2016/03/08 14:52:34, Mathieu Perreault wrote: > So ...
4 years, 9 months ago (2016-03-08 15:31:17 UTC) #5
Marc Treib
+newt for most_visited_sites.h/cc +devlin for preferences_private_apitest.cc +jennyz for suggestions_search_provider.cc PTAL! https://codereview.chromium.org/1770843002/diff/80001/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc File chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc (right): https://codereview.chromium.org/1770843002/diff/80001/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc#newcode81 ...
4 years, 9 months ago (2016-03-08 15:37:59 UTC) #7
Devlin
https://codereview.chromium.org/1770843002/diff/80001/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc File chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc (right): https://codereview.chromium.org/1770843002/diff/80001/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc#newcode81 chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc:81: return; On 2016/03/08 15:37:59, Marc Treib wrote: > Before, ...
4 years, 9 months ago (2016-03-08 17:14:59 UTC) #8
Marc Treib
https://codereview.chromium.org/1770843002/diff/80001/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc File chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc (right): https://codereview.chromium.org/1770843002/diff/80001/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc#newcode81 chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc:81: return; On 2016/03/08 17:14:59, Devlin wrote: > On 2016/03/08 ...
4 years, 9 months ago (2016-03-08 17:33:22 UTC) #9
newt (away)
So, does SuggestionsServiceFactory::GetForProfile(profile_) always return a non-null value now? That'd be helpful to mention in ...
4 years, 9 months ago (2016-03-08 18:58:39 UTC) #10
Devlin
lgtm https://codereview.chromium.org/1770843002/diff/80001/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc File chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc (right): https://codereview.chromium.org/1770843002/diff/80001/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc#newcode81 chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc:81: return; On 2016/03/08 17:33:22, Marc Treib wrote: > ...
4 years, 9 months ago (2016-03-08 20:06:23 UTC) #11
Marc Treib
SuggestionsServiceFactory::GetForProfile(profile_) would never return null, even before this CL. Sorry for not mentioning this before; ...
4 years, 9 months ago (2016-03-09 10:03:49 UTC) #14
Marc Treib
+stevenjb for suggestions_search_provider.cc, since jennyz seems to be inactive. PTAL, thanks!
4 years, 9 months ago (2016-03-09 13:04:21 UTC) #16
newt (away)
most_visited_sites lgtm
4 years, 9 months ago (2016-03-09 18:12:03 UTC) #17
newt (away)
On 2016/03/09 10:03:49, Marc Treib wrote: > SuggestionsServiceFactory::GetForProfile(profile_) would never return null, even > before ...
4 years, 9 months ago (2016-03-09 18:12:58 UTC) #18
stevenjb
lgtm
4 years, 9 months ago (2016-03-09 18:27:06 UTC) #19
Marc Treib
+pavely for new dependency from components/suggestions to components/sync_driver +sdefresne for components/suggestions.gypi. (We should probably have ...
4 years, 9 months ago (2016-03-10 09:22:18 UTC) #21
sdefresne
components/suggestions.gypi lgtm
4 years, 9 months ago (2016-03-10 10:14:50 UTC) #22
sdefresne
... provided that the bots are happy.
4 years, 9 months ago (2016-03-10 10:15:21 UTC) #23
Marc Treib
On 2016/03/10 10:15:21, sdefresne wrote: > ... provided that the bots are happy. They are, ...
4 years, 9 months ago (2016-03-10 10:21:28 UTC) #24
sdefresne
On 2016/03/10 at 10:21:28, treib wrote: > On 2016/03/10 10:15:21, sdefresne wrote: > > ...
4 years, 9 months ago (2016-03-10 10:27:33 UTC) #25
pavely
lgtm
4 years, 9 months ago (2016-03-10 23:58:49 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1770843002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1770843002/100001
4 years, 9 months ago (2016-03-11 08:55:09 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/185212)
4 years, 9 months ago (2016-03-11 09:05:14 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1770843002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1770843002/120001
4 years, 9 months ago (2016-03-11 10:40:12 UTC) #34
sdefresne
ios/ lgtm, but if you had sent the CL to all bots, you could have ...
4 years, 9 months ago (2016-03-11 10:51:00 UTC) #35
Marc Treib
On 2016/03/11 10:51:00, sdefresne wrote: > ios/ lgtm, but if you had sent the CL ...
4 years, 9 months ago (2016-03-11 10:58:09 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 9 months ago (2016-03-11 11:57:51 UTC) #38
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 11:59:07 UTC) #40
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/16070ce69cfb26481240995705c8a1a206fd829c
Cr-Commit-Position: refs/heads/master@{#380603}

Powered by Google App Engine
This is Rietveld 408576698