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

Issue 2922543002: [NTP::Push] Add Content Suggestions GCM App Handler (Closed)

Created:
3 years, 6 months ago by mamir
Modified:
3 years, 6 months ago
CC:
chromium-reviews, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, noyau+watch_chromium.org, droger+watchlist_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP::Push] Add Content Suggestions GCM App Handler BUG=728743 Review-Url: https://codereview.chromium.org/2922543002 Cr-Commit-Position: refs/heads/master@{#478340} Committed: https://chromium.googlesource.com/chromium/src/+/84b98495ac596af91308b9771afb98f18f73514d

Patch Set 1 #

Total comments: 22

Patch Set 2 : sfiera@ comments. #

Total comments: 45

Patch Set 3 : Addressing reviewers comments. #

Patch Set 4 : Storing the subscription token in pref #

Patch Set 5 : Updates to the prefs. #

Total comments: 10

Patch Set 6 : sfiera@ comments. #

Patch Set 7 : Implement unsubscribe. #

Total comments: 10

Patch Set 8 : peter@ comments. #

Total comments: 12

Patch Set 9 : jkrcal@ comments. #

Patch Set 10 : Add missing dependency. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -11 lines) Patch
M chrome/browser/ntp_snippets/content_suggestions_service_factory.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M components/ntp_snippets/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M components/ntp_snippets/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.h View 1 2 3 4 5 1 chunk +83 lines, -0 lines 0 comments Download
A components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +144 lines, -0 lines 0 comments Download
M components/ntp_snippets/breaking_news/subscription_manager.h View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -2 lines 0 comments Download
M components/ntp_snippets/breaking_news/subscription_manager.cc View 1 2 3 4 5 6 7 8 3 chunks +50 lines, -3 lines 0 comments Download
M components/ntp_snippets/breaking_news/subscription_manager_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +35 lines, -4 lines 0 comments Download
M components/ntp_snippets/pref_names.h View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -2 lines 0 comments Download
M components/ntp_snippets/pref_names.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
mamir
3 years, 6 months ago (2017-06-01 18:58:27 UTC) #2
sfiera
https://codereview.chromium.org/2922543002/diff/1/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc File components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc (right): https://codereview.chromium.org/2922543002/diff/1/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc#newcode18 components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc:18: // Our sender ID we send up with all ...
3 years, 6 months ago (2017-06-02 08:43:05 UTC) #3
mamir
Thank for the informative review. Design has been changed as per offline discussion. PTAL https://codereview.chromium.org/2922543002/diff/1/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc ...
3 years, 6 months ago (2017-06-02 13:13:57 UTC) #4
mamir
Hi Peter, We need you GCM superpowers to check how reasonable this CL is :-) ...
3 years, 6 months ago (2017-06-02 13:15:46 UTC) #6
sfiera
Looks OK. We'll see what Peter thinks. https://codereview.chromium.org/2922543002/diff/20001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc File components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc (right): https://codereview.chromium.org/2922543002/diff/20001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc#newcode35 components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc:35: Subscribe(); The ...
3 years, 6 months ago (2017-06-02 13:41:24 UTC) #7
Peter Beverloo
Exciting! Thanks for sharing :) https://codereview.chromium.org/2922543002/diff/20001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc File components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc (right): https://codereview.chromium.org/2922543002/diff/20001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc#newcode12 components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc:12: #include "content/public/common/push_messaging_status.h" This is ...
3 years, 6 months ago (2017-06-02 14:02:03 UTC) #8
mamir
https://codereview.chromium.org/2922543002/diff/20001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc File components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc (right): https://codereview.chromium.org/2922543002/diff/20001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc#newcode12 components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc:12: #include "content/public/common/push_messaging_status.h" On 2017/06/02 14:02:02, Peter Beverloo wrote: > ...
3 years, 6 months ago (2017-06-04 15:10:14 UTC) #9
mamir
https://codereview.chromium.org/2922543002/diff/20001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.h File components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.h (right): https://codereview.chromium.org/2922543002/diff/20001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.h#newcode42 components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.h:42: instance_id::InstanceIDDriver* const instance_id_driver_; Actually, GCMProfileServiceFactory (and InstanceIDProfileServiceFactory) is in ...
3 years, 6 months ago (2017-06-04 16:19:01 UTC) #10
sfiera
LGTM, except for one thing and a few comment nits https://codereview.chromium.org/2922543002/diff/80001/components/ntp_snippets/BUILD.gn File components/ntp_snippets/BUILD.gn (right): https://codereview.chromium.org/2922543002/diff/80001/components/ntp_snippets/BUILD.gn#newcode150 ...
3 years, 6 months ago (2017-06-07 11:34:38 UTC) #11
mamir
Implemented unsubscribe. PTAL https://codereview.chromium.org/2922543002/diff/80001/components/ntp_snippets/BUILD.gn File components/ntp_snippets/BUILD.gn (right): https://codereview.chromium.org/2922543002/diff/80001/components/ntp_snippets/BUILD.gn#newcode150 components/ntp_snippets/BUILD.gn:150: "breaking_news/content_suggestions_gcm_app_handler_unittest.cc", On 2017/06/07 11:34:38, sfiera wrote: ...
3 years, 6 months ago (2017-06-07 14:29:17 UTC) #13
Peter Beverloo
gcm lgtm https://codereview.chromium.org/2922543002/diff/20001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc File components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc (right): https://codereview.chromium.org/2922543002/diff/20001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc#newcode39 components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc:39: StopListening(); On 2017/06/04 15:10:13, mamir wrote: > ...
3 years, 6 months ago (2017-06-08 07:02:40 UTC) #14
mamir
Please, sfiera, PTAL https://codereview.chromium.org/2922543002/diff/20001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc File components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc (right): https://codereview.chromium.org/2922543002/diff/20001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc#newcode39 components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc:39: StopListening(); On 2017/06/08 07:02:39, Peter Beverloo ...
3 years, 6 months ago (2017-06-08 10:31:39 UTC) #15
mamir
jkrcal@chromium.org: Please review changes in
3 years, 6 months ago (2017-06-08 16:07:17 UTC) #17
jkrcal
https://codereview.chromium.org/2922543002/diff/150001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc File components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc (right): https://codereview.chromium.org/2922543002/diff/150001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc#newcode48 components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc:48: Subscribe(); For the sake of symmetry, maybe add something ...
3 years, 6 months ago (2017-06-09 09:10:10 UTC) #18
mamir
https://codereview.chromium.org/2922543002/diff/150001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc File components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc (right): https://codereview.chromium.org/2922543002/diff/150001/components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc#newcode48 components/ntp_snippets/breaking_news/content_suggestions_gcm_app_handler.cc:48: Subscribe(); On 2017/06/09 09:10:10, jkrcal wrote: > For the ...
3 years, 6 months ago (2017-06-09 13:52:58 UTC) #19
jkrcal
Thanks, lgtm!
3 years, 6 months ago (2017-06-09 14:13:33 UTC) #20
mamir
bauerb@chromium.org: Please review changes in chrome/browser/prefs/browser_prefs.cc
3 years, 6 months ago (2017-06-09 14:27:19 UTC) #22
Bernhard Bauer
lgtm
3 years, 6 months ago (2017-06-09 15:09:33 UTC) #23
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/2922543002/170001
3 years, 6 months ago (2017-06-09 15:11:49 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/286887) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 6 months ago (2017-06-09 15:15:32 UTC) #28
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/2922543002/190001
3 years, 6 months ago (2017-06-09 16:34:04 UTC) #31
commit-bot: I haz the power
3 years, 6 months ago (2017-06-09 18:25:57 UTC) #34
Message was sent while issue was closed.
Committed patchset #10 (id:190001) as
https://chromium.googlesource.com/chromium/src/+/84b98495ac596af91308b9771afb...

Powered by Google App Engine
This is Rietveld 408576698