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

Issue 298703009: SuggestionsService blacklist handling. (Closed)

Created:
6 years, 7 months ago by manzagop (departed)
Modified:
6 years, 6 months ago
Reviewers:
Mathieu, Ted C, Jered
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

SuggestionsService blacklist handling. - MostVisitedSites keeps track of which source the sites come from - Blacklist requests are sent to the source corresponding to the current suggestions - SuggestionsService now handles blacklist requests BUG=None TEST=SuggestionsService Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274284

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address first round of comments. Avoid QueryMostVisited loop. #

Total comments: 20

Patch Set 3 : Address Jered and Ted's first round of comments. #

Patch Set 4 : Touchups for Ted's second round (if -> DCHECK in MostVisitedSites::BlacklistUrl). #

Patch Set 5 : Sync / rebase. #

Total comments: 4

Patch Set 6 : Rename AddBlacklistedURL to BlacklistURL. #

Patch Set 7 : Missed renaming. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -52 lines) Patch
M chrome/browser/android/most_visited_sites.h View 1 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/android/most_visited_sites.cc View 1 2 3 4 5 6 8 chunks +52 lines, -28 lines 0 comments Download
M chrome/browser/search/suggestions/suggestions_service.h View 1 2 3 4 5 5 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/search/suggestions/suggestions_service.cc View 1 2 3 4 5 6 chunks +58 lines, -11 lines 0 comments Download
M chrome/browser/search/suggestions/suggestions_service_unittest.cc View 1 2 3 4 5 8 chunks +68 lines, -13 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
manzagop (departed)
Hey Math, Here's the discussed change! Thanks, Pierre
6 years, 7 months ago (2014-05-22 18:55:48 UTC) #1
Mathieu
See note about GURL. https://codereview.chromium.org/298703009/diff/1/chrome/browser/android/most_visited_sites.cc File chrome/browser/android/most_visited_sites.cc (right): https://codereview.chromium.org/298703009/diff/1/chrome/browser/android/most_visited_sites.cc#newcode187 chrome/browser/android/most_visited_sites.cc:187: GURL url(url_string); I guess you ...
6 years, 7 months ago (2014-05-22 21:50:49 UTC) #2
manzagop (departed)
Addressed comments. Also only calling QueryMostVisitedURLs from Observe when the currently displayed recommendations are from ...
6 years, 7 months ago (2014-05-23 15:20:02 UTC) #3
Mathieu
lgtm but you'll have to ask others :) jered: search/ ted: most_visited_sites
6 years, 7 months ago (2014-05-23 17:42:22 UTC) #4
manzagop (departed)
Thanks, will wait for Ted and Jered's lgtm.
6 years, 7 months ago (2014-05-27 20:09:37 UTC) #5
Jered
https://codereview.chromium.org/298703009/diff/10001/chrome/browser/search/suggestions/suggestions_service.cc File chrome/browser/search/suggestions/suggestions_service.cc (right): https://codereview.chromium.org/298703009/diff/10001/chrome/browser/search/suggestions/suggestions_service.cc#newcode97 chrome/browser/search/suggestions/suggestions_service.cc:97: if (pending_request_.get()) { What if the pending request is ...
6 years, 7 months ago (2014-05-27 22:33:17 UTC) #6
Ted C
https://codereview.chromium.org/298703009/diff/10001/chrome/browser/android/most_visited_sites.cc File chrome/browser/android/most_visited_sites.cc (right): https://codereview.chromium.org/298703009/diff/10001/chrome/browser/android/most_visited_sites.cc#newcode152 chrome/browser/android/most_visited_sites.cc:152: history::TopSites* top_sites = profile_->GetTopSites(); should we not be doing ...
6 years, 7 months ago (2014-05-27 23:59:08 UTC) #7
manzagop (departed)
Thanks for the review (and appologies for taking so long to address). Please have another ...
6 years, 6 months ago (2014-05-29 21:40:30 UTC) #8
Ted C
most_visited_sites - lgtm https://codereview.chromium.org/298703009/diff/10001/chrome/browser/android/most_visited_sites.cc File chrome/browser/android/most_visited_sites.cc (right): https://codereview.chromium.org/298703009/diff/10001/chrome/browser/android/most_visited_sites.cc#newcode152 chrome/browser/android/most_visited_sites.cc:152: history::TopSites* top_sites = profile_->GetTopSites(); On 2014/05/29 ...
6 years, 6 months ago (2014-05-30 16:37:12 UTC) #9
manzagop (departed)
Thanks for the review Ted! Jered: friendly ping! https://codereview.chromium.org/298703009/diff/10001/chrome/browser/android/most_visited_sites.cc File chrome/browser/android/most_visited_sites.cc (right): https://codereview.chromium.org/298703009/diff/10001/chrome/browser/android/most_visited_sites.cc#newcode152 chrome/browser/android/most_visited_sites.cc:152: history::TopSites* ...
6 years, 6 months ago (2014-06-02 13:18:56 UTC) #10
Jered
lgtm for search https://codereview.chromium.org/298703009/diff/70001/chrome/browser/search/suggestions/suggestions_service.h File chrome/browser/search/suggestions/suggestions_service.h (right): https://codereview.chromium.org/298703009/diff/70001/chrome/browser/search/suggestions/suggestions_service.h#newcode8 chrome/browser/search/suggestions/suggestions_service.h:8: #include <deque> revert? I don't see ...
6 years, 6 months ago (2014-06-02 15:27:48 UTC) #11
manzagop (departed)
Thanks for the review. Will go ahead with submission. https://codereview.chromium.org/298703009/diff/70001/chrome/browser/search/suggestions/suggestions_service.h File chrome/browser/search/suggestions/suggestions_service.h (right): https://codereview.chromium.org/298703009/diff/70001/chrome/browser/search/suggestions/suggestions_service.h#newcode8 chrome/browser/search/suggestions/suggestions_service.h:8: ...
6 years, 6 months ago (2014-06-02 16:20:13 UTC) #12
manzagop (departed)
The CQ bit was checked by manzagop@chromium.org
6 years, 6 months ago (2014-06-02 16:57:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/manzagop@chromium.org/298703009/100001
6 years, 6 months ago (2014-06-02 16:57:55 UTC) #14
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 18:16:21 UTC) #15
Message was sent while issue was closed.
Change committed as 274284

Powered by Google App Engine
This is Rietveld 408576698