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

Issue 2342673004: Clear browsing data from ContentSuggestionService only if exists. (Closed)

Created:
4 years, 3 months ago by jkrcal
Modified:
4 years, 3 months ago
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org, ntp-dev+reviews_chromium.org, Marc Treib
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear browsing data from ContentSuggestionService only if exists. Currently, we instantiate the service in BrowsingDataRemover even when it does not exist, yet. This means that we instantiate it on non-android platforms, in unit-tests, etc. This CL changes the logic so that the service is accessed only if it has been created previously. This way, the BrowsingDataRemover respects the start-up logic that decides whether to create the service or not. BUG=647222 Committed: https://crrev.com/9d1e504520b774c0a6f24920f730748053c4b2b2 Cr-Commit-Position: refs/heads/master@{#419141}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Marc's comment #

Patch Set 3 : Last comment of Bernhard #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -2 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ntp_snippets/content_suggestions_service_factory.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ntp_snippets/content_suggestions_service_factory.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
jkrcal
Hi Bernhard, this is another M54 merge candidate. PTAL! A bit more of explanation: If ...
4 years, 3 months ago (2016-09-15 12:38:47 UTC) #2
Marc Treib
https://codereview.chromium.org/2342673004/diff/1/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (left): https://codereview.chromium.org/2342673004/diff/1/chrome/browser/browsing_data/browsing_data_remover.cc#oldcode525 chrome/browser/browsing_data/browsing_data_remover.cc:525: ContentSuggestionsServiceFactory::GetForProfile(profile_); GetForProfile is called in one more place in ...
4 years, 3 months ago (2016-09-15 12:45:09 UTC) #4
jkrcal
Thanks, Marc! Bernhard, PTAL. https://codereview.chromium.org/2342673004/diff/1/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (left): https://codereview.chromium.org/2342673004/diff/1/chrome/browser/browsing_data/browsing_data_remover.cc#oldcode525 chrome/browser/browsing_data/browsing_data_remover.cc:525: ContentSuggestionsServiceFactory::GetForProfile(profile_); On 2016/09/15 12:45:09, Marc ...
4 years, 3 months ago (2016-09-15 12:53:17 UTC) #5
Bernhard Bauer
On 2016/09/15 12:38:47, jkrcal wrote: > Hi Bernhard, this is another M54 merge candidate. PTAL! ...
4 years, 3 months ago (2016-09-15 13:44:46 UTC) #6
jkrcal
On 2016/09/15 13:44:46, Bernhard Bauer wrote: > On 2016/09/15 12:38:47, jkrcal wrote: > > Hi ...
4 years, 3 months ago (2016-09-15 14:30:11 UTC) #7
Bernhard Bauer
On 2016/09/15 14:30:11, jkrcal wrote: > On 2016/09/15 13:44:46, Bernhard Bauer wrote: > > On ...
4 years, 3 months ago (2016-09-15 14:55:01 UTC) #8
jkrcal
On 2016/09/15 14:55:01, Bernhard Bauer wrote: > On 2016/09/15 14:30:11, jkrcal wrote: > > On ...
4 years, 3 months ago (2016-09-15 16:25:17 UTC) #9
Bernhard Bauer
On 2016/09/15 16:25:17, jkrcal wrote: > On 2016/09/15 14:55:01, Bernhard Bauer wrote: > > On ...
4 years, 3 months ago (2016-09-15 19:25:46 UTC) #10
jkrcal
I've added the TODO. Thanks, Berhnard!
4 years, 3 months ago (2016-09-16 09:59:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2342673004/40001
4 years, 3 months ago (2016-09-16 10:57:36 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-16 11:02:18 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 11:04:29 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9d1e504520b774c0a6f24920f730748053c4b2b2
Cr-Commit-Position: refs/heads/master@{#419141}

Powered by Google App Engine
This is Rietveld 408576698