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

Issue 1976153002: Various NTPSnippetsService cleanups: (Closed)

Created:
4 years, 7 months ago by Marc Treib
Modified:
4 years, 7 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, mcwilliams+watch_chromium.org, dgn+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Various small NTPSnippetsService cleanups: - Remove confusing "NTPSnippetsStorage" typedef - Remove unimplemented method from the header - Add state_ enum and DCHECK that Init/Shutdown are called correctly - Clear SuggestionsService subscription on shutdown BUG=none Committed: https://crrev.com/1d2c78a1329d3c27eba60ed24b354f7c42b7302d Cr-Commit-Position: refs/heads/master@{#394399}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : Shutdown() in tests #

Total comments: 8

Patch Set 4 : review #

Total comments: 3

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -20 lines) Patch
M components/ntp_snippets/ntp_snippets_service.h View 1 2 3 4 5 chunks +11 lines, -11 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 3 4 8 chunks +16 lines, -6 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service_unittest.cc View 1 2 3 chunks +8 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1976153002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1976153002/20001
4 years, 7 months ago (2016-05-13 13:32:59 UTC) #3
Marc Treib
PTAL!
4 years, 7 months ago (2016-05-13 13:33:01 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/169659)
4 years, 7 months ago (2016-05-13 13:51:14 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1976153002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1976153002/40001
4 years, 7 months ago (2016-05-13 14:11:23 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-13 14:54:24 UTC) #11
Bernhard Bauer
https://codereview.chromium.org/1976153002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/1976153002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc#newcode215 components/ntp_snippets/ntp_snippets_service.cc:215: if (!did_init_) Hm... under which circumstances would we shut ...
4 years, 7 months ago (2016-05-13 16:04:05 UTC) #12
Marc Treib
https://codereview.chromium.org/1976153002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/1976153002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc#newcode215 components/ntp_snippets/ntp_snippets_service.cc:215: if (!did_init_) On 2016/05/13 16:04:05, Bernhard Bauer wrote: > ...
4 years, 7 months ago (2016-05-17 08:38:14 UTC) #13
Bernhard Bauer
https://codereview.chromium.org/1976153002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/1976153002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc#newcode215 components/ntp_snippets/ntp_snippets_service.cc:215: if (!did_init_) On 2016/05/17 08:38:14, Marc Treib wrote: > ...
4 years, 7 months ago (2016-05-17 09:23:40 UTC) #14
Marc Treib
https://codereview.chromium.org/1976153002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/1976153002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc#newcode215 components/ntp_snippets/ntp_snippets_service.cc:215: if (!did_init_) On 2016/05/17 09:23:40, Bernhard Bauer wrote: > ...
4 years, 7 months ago (2016-05-17 11:21:18 UTC) #15
Bernhard Bauer
lgtm https://codereview.chromium.org/1976153002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/1976153002/diff/40001/components/ntp_snippets/ntp_snippets_service.cc#newcode215 components/ntp_snippets/ntp_snippets_service.cc:215: if (!did_init_) On 2016/05/17 11:21:18, Marc Treib wrote: ...
4 years, 7 months ago (2016-05-17 12:38:13 UTC) #16
Marc Treib
https://codereview.chromium.org/1976153002/diff/50001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/1976153002/diff/50001/components/ntp_snippets/ntp_snippets_service.cc#newcode189 components/ntp_snippets/ntp_snippets_service.cc:189: DCHECK(state_ == State::NOT_INITED); On 2016/05/17 12:38:13, Bernhard Bauer wrote: ...
4 years, 7 months ago (2016-05-17 12:46:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1976153002/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1976153002/70001
4 years, 7 months ago (2016-05-18 12:29:52 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:70001)
4 years, 7 months ago (2016-05-18 13:23:12 UTC) #23
commit-bot: I haz the power
4 years, 7 months ago (2016-05-18 13:25:39 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1d2c78a1329d3c27eba60ed24b354f7c42b7302d
Cr-Commit-Position: refs/heads/master@{#394399}

Powered by Google App Engine
This is Rietveld 408576698