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

Issue 473123002: [Most Visited] Check for Sync state when using SuggestionsService. (Closed)

Created:
6 years, 4 months ago by Mathieu
Modified:
6 years, 4 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, Jered
Project:
chromium
Visibility:
Public.

Description

[Most Visited] Check for Sync state when using SuggestionsService. BUG=386454 TBR=erikwright TEST=SuggestionsServiceTest

Patch Set 1 #

Patch Set 2 : clean #

Total comments: 12

Patch Set 3 : new api #

Total comments: 20

Patch Set 4 : addressed comments #

Total comments: 4

Patch Set 5 : simplified sync #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+234 lines, -41 lines) Patch
M chrome/browser/android/most_visited_sites.h View 1 2 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/android/most_visited_sites.cc View 1 2 3 4 7 chunks +37 lines, -3 lines 6 comments Download
M chrome/browser/search/suggestions/suggestions_source.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M components/suggestions.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/suggestions/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/suggestions/suggestions_service.h View 1 2 3 3 chunks +20 lines, -10 lines 0 comments Download
M components/suggestions/suggestions_service.cc View 1 2 3 4 4 chunks +44 lines, -27 lines 0 comments Download
M components/suggestions/suggestions_service_unittest.cc View 1 2 3 4 chunks +59 lines, -0 lines 0 comments Download
A components/suggestions/suggestions_utils.h View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
A components/suggestions/suggestions_utils.cc View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Mathieu
Can you have a look? Will polish tomorrow, may not be perfect. Thanks :)
6 years, 4 months ago (2014-08-15 01:47:43 UTC) #1
manzagop (departed)
Cool stuff. https://codereview.chromium.org/473123002/diff/20001/chrome/browser/android/most_visited_sites.cc File chrome/browser/android/most_visited_sites.cc (right): https://codereview.chromium.org/473123002/diff/20001/chrome/browser/android/most_visited_sites.cc#newcode205 chrome/browser/android/most_visited_sites.cc:205: // as an observer. Perhaps explain why ...
6 years, 4 months ago (2014-08-15 13:01:52 UTC) #2
Mathieu
Hi, I changed the API to an enum, please have a look. https://codereview.chromium.org/473123002/diff/20001/chrome/browser/android/most_visited_sites.cc File chrome/browser/android/most_visited_sites.cc ...
6 years, 4 months ago (2014-08-20 14:21:32 UTC) #3
manzagop (departed)
Good stuff. Main comment is about ongoing requests and the blacklist store. https://codereview.chromium.org/473123002/diff/40001/components/suggestions/suggestions_service.cc File components/suggestions/suggestions_service.cc ...
6 years, 4 months ago (2014-08-20 15:43:51 UTC) #4
Mathieu
Thanks, your input is appreciated! https://codereview.chromium.org/473123002/diff/40001/components/suggestions/suggestions_service.cc File components/suggestions/suggestions_service.cc (right): https://codereview.chromium.org/473123002/diff/40001/components/suggestions/suggestions_service.cc#newcode169 components/suggestions/suggestions_service.cc:169: suggestions_store_->ClearSuggestions(); On 2014/08/20 15:43:51, ...
6 years, 4 months ago (2014-08-20 18:41:30 UTC) #5
manzagop (departed)
https://codereview.chromium.org/473123002/diff/60001/components/suggestions/suggestions_service.cc File components/suggestions/suggestions_service.cc (right): https://codereview.chromium.org/473123002/diff/60001/components/suggestions/suggestions_service.cc#newcode174 components/suggestions/suggestions_service.cc:174: callback.Run(SuggestionsProfile()); Also serve the waiting requestors? https://codereview.chromium.org/473123002/diff/60001/components/suggestions/suggestions_utils.h File components/suggestions/suggestions_utils.h ...
6 years, 4 months ago (2014-08-20 19:28:14 UTC) #6
manzagop (departed)
LGTM up to the requestors thing.
6 years, 4 months ago (2014-08-20 19:28:49 UTC) #7
Mathieu
Thanks P-A. Newton, can you look at the changes to most_visited_sites? We're enforcing a sync ...
6 years, 4 months ago (2014-08-20 21:37:48 UTC) #8
newt (away)
https://codereview.chromium.org/473123002/diff/80001/chrome/browser/android/most_visited_sites.cc File chrome/browser/android/most_visited_sites.cc (right): https://codereview.chromium.org/473123002/diff/80001/chrome/browser/android/most_visited_sites.cc#newcode262 chrome/browser/android/most_visited_sites.cc:262: mv_source_ == SUGGESTIONS_SERVICE; extra space https://codereview.chromium.org/473123002/diff/80001/chrome/browser/android/most_visited_sites.cc#newcode350 chrome/browser/android/most_visited_sites.cc:350: QueryMostVisitedURLs(); If ...
6 years, 4 months ago (2014-08-20 21:49:55 UTC) #9
Mathieu
Thanks! https://codereview.chromium.org/473123002/diff/80001/chrome/browser/android/most_visited_sites.cc File chrome/browser/android/most_visited_sites.cc (right): https://codereview.chromium.org/473123002/diff/80001/chrome/browser/android/most_visited_sites.cc#newcode262 chrome/browser/android/most_visited_sites.cc:262: mv_source_ == SUGGESTIONS_SERVICE; On 2014/08/20 21:49:55, newt wrote: ...
6 years, 4 months ago (2014-08-20 22:23:56 UTC) #10
newt (away)
lgtm https://codereview.chromium.org/473123002/diff/80001/chrome/browser/android/most_visited_sites.cc File chrome/browser/android/most_visited_sites.cc (right): https://codereview.chromium.org/473123002/diff/80001/chrome/browser/android/most_visited_sites.cc#newcode262 chrome/browser/android/most_visited_sites.cc:262: mv_source_ == SUGGESTIONS_SERVICE; On 2014/08/20 22:23:56, Mathieu Perreault ...
6 years, 4 months ago (2014-08-20 22:38:56 UTC) #11
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 4 months ago (2014-08-20 23:16:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/473123002/80001
6 years, 4 months ago (2014-08-20 23:17:51 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-21 00:47:06 UTC) #14
Mathieu
The CQ bit was unchecked by mathp@chromium.org
6 years, 4 months ago (2014-08-21 00:48:19 UTC) #15
Mathieu
TBR erikwright for suggestions.gypi (I should really make myself an owner of that)
6 years, 4 months ago (2014-08-21 00:52:06 UTC) #16
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 4 months ago (2014-08-21 00:52:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/473123002/80001
6 years, 4 months ago (2014-08-21 00:54:00 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-21 00:58:48 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 01:01:57 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/55379) android_clang_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg/builds/8120)
6 years, 4 months ago (2014-08-21 01:02:00 UTC) #21
Mathieu
The CQ bit was checked by mathp@chromium.org
6 years, 4 months ago (2014-08-21 12:49:17 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mathp@chromium.org/473123002/80001
6 years, 4 months ago (2014-08-21 12:50:22 UTC) #23
Mathieu
The CQ bit was unchecked by mathp@chromium.org
6 years, 4 months ago (2014-08-21 17:13:12 UTC) #24
Mathieu
6 years, 4 months ago (2014-08-21 17:20:32 UTC) #25
On 2014/08/21 17:13:12, Mathieu Perreault wrote:
> The CQ bit was unchecked by mailto:mathp@chromium.org

Change committed.

Powered by Google App Engine
This is Rietveld 408576698