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

Issue 2000233002: [NTP Snippets] Unschedule fetches when the service should be disabled (Closed)

Created:
4 years, 7 months ago by dgn
Modified:
3 years, 10 months ago
CC:
chromium-reviews, zine-eng+reviews_google.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@SnippetsDB
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP Snippets] Unschedule fetches when the service should be disabled The snippet service is now able to switch between being enabled or disabled, properly notifying its observers and releasing unecessary resources BUG=608913 Committed: https://crrev.com/5de0fd3bc4b53a39fc5557706d74a715839ee80c Cr-Commit-Position: refs/heads/master@{#398290}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Please only look at ntp_snippets_service.*, the rest is because of the merge gone bad. #

Total comments: 15

Patch Set 3 : Rebase and address comments #

Total comments: 4

Patch Set 4 #

Total comments: 2

Patch Set 5 : #

Total comments: 38

Patch Set 6 : Address comments #

Patch Set 7 : fix typos #

Total comments: 18

Patch Set 8 : Address comments #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -96 lines) Patch
M components/ntp_snippets/ntp_snippets_service.h View 1 2 3 4 5 6 7 4 chunks +86 lines, -22 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 3 4 5 6 7 8 9 16 chunks +174 lines, -57 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service_unittest.cc View 1 2 3 4 5 6 7 7 chunks +17 lines, -17 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
dgn
PTAL. I don't even have the last version of your patch and tests are broken, ...
4 years, 7 months ago (2016-05-23 20:28:21 UTC) #2
dgn
On 2016/05/23 20:28:21, dgn wrote: > PTAL. I don't even have the last version of ...
4 years, 7 months ago (2016-05-23 20:55:38 UTC) #3
Marc Treib
On 2016/05/23 20:55:38, dgn wrote: > On 2016/05/23 20:28:21, dgn wrote: > > PTAL. I ...
4 years, 7 months ago (2016-05-24 09:04:40 UTC) #4
Marc Treib
https://codereview.chromium.org/2000233002/diff/1/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2000233002/diff/1/components/ntp_snippets/ntp_snippets_service.cc#newcode226 components/ntp_snippets/ntp_snippets_service.cc:226: void NTPSnippetsService::Init(bool enabled) { Heads-up: Michael's https://codereview.chromium.org/1997473004/ moves the ...
4 years, 7 months ago (2016-05-24 09:04:46 UTC) #5
dgn
On 2016/05/24 09:04:40, Marc Treib wrote: > On 2016/05/23 20:55:38, dgn wrote: > > On ...
4 years, 7 months ago (2016-05-24 13:35:16 UTC) #6
dgn
PTAL. Sorry about the dirty diff, that's a rebase gone wrong. relevant changes are still ...
4 years, 7 months ago (2016-05-24 18:13:30 UTC) #7
dgn
PTAL
4 years, 7 months ago (2016-05-25 14:04:32 UTC) #9
Marc Treib
https://codereview.chromium.org/2000233002/diff/1/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2000233002/diff/1/components/ntp_snippets/ntp_snippets_service.cc#newcode387 components/ntp_snippets/ntp_snippets_service.cc:387: // loaded to avoid unnecessary state changes. On 2016/05/24 ...
4 years, 7 months ago (2016-05-25 14:47:33 UTC) #10
Marc Treib
https://codereview.chromium.org/2000233002/diff/20001/components/ntp_snippets/ntp_snippets_service.h File components/ntp_snippets/ntp_snippets_service.h (right): https://codereview.chromium.org/2000233002/diff/20001/components/ntp_snippets/ntp_snippets_service.h#newcode90 components/ntp_snippets/ntp_snippets_service.h:90: READY, FYI: Based on Bernhard's comments on my CL, ...
4 years, 6 months ago (2016-05-30 16:26:15 UTC) #11
dgn
https://codereview.chromium.org/2000233002/diff/20001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2000233002/diff/20001/components/ntp_snippets/ntp_snippets_service.cc#newcode292 components/ntp_snippets/ntp_snippets_service.cc:292: // snippets-internals can call ClearSnippets while the service is ...
4 years, 6 months ago (2016-06-03 19:02:25 UTC) #12
dgn
PTAL https://codereview.chromium.org/2000233002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (left): https://codereview.chromium.org/2000233002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc#oldcode214 components/ntp_snippets/ntp_snippets_service.cc:214: RescheduleFetching(); Significant change: we now call Reschedule fetching ...
4 years, 6 months ago (2016-06-03 19:42:23 UTC) #13
Marc Treib
https://codereview.chromium.org/2000233002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (left): https://codereview.chromium.org/2000233002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc#oldcode214 components/ntp_snippets/ntp_snippets_service.cc:214: RescheduleFetching(); On 2016/06/03 19:42:22, dgn wrote: > Significant change: ...
4 years, 6 months ago (2016-06-06 08:38:33 UTC) #14
dgn
PTAL https://codereview.chromium.org/2000233002/diff/80001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2000233002/diff/80001/components/ntp_snippets/ntp_snippets_service.cc#newcode202 components/ntp_snippets/ntp_snippets_service.cc:202: // TODO(dgn) should that be removed after branch ...
4 years, 6 months ago (2016-06-06 15:44:39 UTC) #15
Marc Treib
https://codereview.chromium.org/2000233002/diff/80001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2000233002/diff/80001/components/ntp_snippets/ntp_snippets_service.cc#newcode350 components/ntp_snippets/ntp_snippets_service.cc:350: FetchSnippets(); On 2016/06/06 15:44:39, dgn wrote: > Removed so ...
4 years, 6 months ago (2016-06-07 08:55:39 UTC) #16
dgn
PTAL https://codereview.chromium.org/2000233002/diff/120001/chrome/browser/ui/webui/snippets_internals_message_handler.cc File chrome/browser/ui/webui/snippets_internals_message_handler.cc (right): https://codereview.chromium.org/2000233002/diff/120001/chrome/browser/ui/webui/snippets_internals_message_handler.cc#newcode124 chrome/browser/ui/webui/snippets_internals_message_handler.cc:124: ntp_snippets_service_->FetchSnippets(); On 2016/06/07 08:55:39, Marc Treib wrote: > ...
4 years, 6 months ago (2016-06-07 11:22:47 UTC) #17
Marc Treib
lgtm https://codereview.chromium.org/2000233002/diff/120001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2000233002/diff/120001/components/ntp_snippets/ntp_snippets_service.cc#newcode678 components/ntp_snippets/ntp_snippets_service.cc:678: default: On 2016/06/07 11:22:46, dgn wrote: > On ...
4 years, 6 months ago (2016-06-07 11:50:37 UTC) #18
dgn
Thanks! https://codereview.chromium.org/2000233002/diff/120001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2000233002/diff/120001/components/ntp_snippets/ntp_snippets_service.cc#newcode678 components/ntp_snippets/ntp_snippets_service.cc:678: default: On 2016/06/07 11:50:37, Marc Treib wrote: > ...
4 years, 6 months ago (2016-06-07 13:15:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2000233002/180001
4 years, 6 months ago (2016-06-07 13:15:27 UTC) #22
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 6 months ago (2016-06-07 14:03:32 UTC) #23
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 14:05:07 UTC) #25
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/5de0fd3bc4b53a39fc5557706d74a715839ee80c
Cr-Commit-Position: refs/heads/master@{#398290}

Powered by Google App Engine
This is Rietveld 408576698