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

Issue 766053010: SuggestionsService undo blacklist functionality. (Closed)

Created:
6 years ago by manzagop (departed)
Modified:
6 years ago
Reviewers:
Mathieu, newt (away)
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

SuggestionsService undo blacklist functionality. This CL introduces functionality to undo the blacklisting of a URL, assuming a UI which allows for undo-ing for a few seconds after blacklisting. The design consists in deffering blacklisted URL uploads until they can no longer be undone, which is the simplest case. Changes: - BlacklistStore now has a concept of time before a URL is candidate for upload - SuggestionsService now schedules blacklist uploads factoring in the delay BUG=430949 Committed: https://crrev.com/3f7d74078e457ddfaf2bf07d1a78131249febc13 Cr-Commit-Position: refs/heads/master@{#307158}

Patch Set 1 #

Patch Set 2 : GetTimeUntilReadyForUpload should not return negative values #

Total comments: 22

Patch Set 3 : Address Mathieu's comments. #

Total comments: 6

Patch Set 4 : Address Mathieu's second round of comments. #

Patch Set 5 : Fix pre-existing chromium-style issue. #

Patch Set 6 : Fix uninitialized test variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+480 lines, -141 lines) Patch
M chrome/browser/android/most_visited_sites.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/suggestions/blacklist_store.h View 1 2 3 4 4 chunks +39 lines, -10 lines 0 comments Download
M components/suggestions/blacklist_store.cc View 1 2 3 4 6 chunks +103 lines, -14 lines 0 comments Download
M components/suggestions/blacklist_store_unittest.cc View 1 2 4 chunks +52 lines, -12 lines 0 comments Download
M components/suggestions/suggestions_service.h View 4 chunks +21 lines, -11 lines 0 comments Download
M components/suggestions/suggestions_service.cc View 1 2 10 chunks +67 lines, -45 lines 0 comments Download
M components/suggestions/suggestions_service_unittest.cc View 1 2 3 4 5 12 chunks +196 lines, -48 lines 0 comments Download

Messages

Total messages: 28 (7 generated)
manzagop (departed)
Please have a look!
6 years ago (2014-12-03 21:05:18 UTC) #2
Mathieu
Comments! https://codereview.chromium.org/766053010/diff/20001/components/suggestions/blacklist_store.cc File components/suggestions/blacklist_store.cc (right): https://codereview.chromium.org/766053010/diff/20001/components/suggestions/blacklist_store.cc#newcode91 components/suggestions/blacklist_store.cc:91: if (blacklist.urls_size() == 0) !blacklist.urls_size() ? https://codereview.chromium.org/766053010/diff/20001/components/suggestions/blacklist_store.cc#newcode96 components/suggestions/blacklist_store.cc:96: ...
6 years ago (2014-12-04 18:53:33 UTC) #3
manzagop (departed)
Addressed comments. PTAL! https://codereview.chromium.org/766053010/diff/20001/components/suggestions/blacklist_store.cc File components/suggestions/blacklist_store.cc (right): https://codereview.chromium.org/766053010/diff/20001/components/suggestions/blacklist_store.cc#newcode91 components/suggestions/blacklist_store.cc:91: if (blacklist.urls_size() == 0) On 2014/12/04 ...
6 years ago (2014-12-05 15:13:23 UTC) #4
Mathieu
lgtm from my side. https://codereview.chromium.org/766053010/diff/40001/components/suggestions/blacklist_store.cc File components/suggestions/blacklist_store.cc (right): https://codereview.chromium.org/766053010/diff/40001/components/suggestions/blacklist_store.cc#newcode99 components/suggestions/blacklist_store.cc:99: CHECK(blacklist_times_.size()); Let's remove this and ...
6 years ago (2014-12-05 16:32:05 UTC) #5
manzagop (departed)
https://codereview.chromium.org/766053010/diff/40001/components/suggestions/blacklist_store.cc File components/suggestions/blacklist_store.cc (right): https://codereview.chromium.org/766053010/diff/40001/components/suggestions/blacklist_store.cc#newcode99 components/suggestions/blacklist_store.cc:99: CHECK(blacklist_times_.size()); On 2014/12/05 16:32:05, Mathieu Perreault wrote: > Let's ...
6 years ago (2014-12-05 20:09:20 UTC) #6
manzagop (departed)
Hi Newton, I'm missing OWNERS for most_visited_sites.cc. The change is small: a callback has been ...
6 years ago (2014-12-05 20:14:27 UTC) #8
newt (away)
On 2014/12/05 20:14:27, manzagop wrote: > Hi Newton, > I'm missing OWNERS for most_visited_sites.cc. The ...
6 years ago (2014-12-05 22:07:07 UTC) #9
newt (away)
On 2014/12/05 22:07:07, newt wrote: > On 2014/12/05 20:14:27, manzagop wrote: > > Hi Newton, ...
6 years ago (2014-12-05 22:12:54 UTC) #10
Mathieu
Not in the UI, no. On iOS they do, which is the motivation. On Dec ...
6 years ago (2014-12-05 22:47:10 UTC) #11
Mathieu
On 2014/12/05 22:47:10, Mathieu Perreault wrote: > Not in the UI, no. On iOS they ...
6 years ago (2014-12-05 22:49:17 UTC) #12
newt (away)
What I meant was: will this change cause weird behavior in Chrome for Android's UI? ...
6 years ago (2014-12-05 22:58:53 UTC) #13
Mathieu
On 2014/12/05 22:58:53, newt wrote: > What I meant was: will this change cause weird ...
6 years ago (2014-12-06 00:55:29 UTC) #14
newt (away)
Great :) On Fri, Dec 5, 2014 at 6:55 PM, <mathp@chromium.org> wrote: > On 2014/12/05 ...
6 years ago (2014-12-06 01:32:22 UTC) #15
manzagop (departed)
On 2014/12/06 01:32:22, newt wrote: > Great :) > > On Fri, Dec 5, 2014 ...
6 years ago (2014-12-06 01:39:53 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/766053010/60001
6 years ago (2014-12-06 01:40:31 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/23728)
6 years ago (2014-12-06 01:47:17 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/766053010/80001
6 years ago (2014-12-06 02:10:52 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/15655)
6 years ago (2014-12-06 03:32:22 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/766053010/100001
6 years ago (2014-12-06 03:47:05 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years ago (2014-12-06 05:04:40 UTC) #27
commit-bot: I haz the power
6 years ago (2014-12-06 05:05:33 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3f7d74078e457ddfaf2bf07d1a78131249febc13
Cr-Commit-Position: refs/heads/master@{#307158}

Powered by Google App Engine
This is Rietveld 408576698