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

Issue 2918513002: [NTP::Push] Add the classes for sending a breaking news subscription request (Closed)

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

Description

[NTP::Push] Add the classes for sending a breaking news subscription request Add the classes for sending a gcm subscription request to the content suggestion server. They are required to be able to later deliver breaking news notifications via GCM. BUG=728119 Review-Url: https://codereview.chromium.org/2918513002 Cr-Commit-Position: refs/heads/master@{#476647} Committed: https://chromium.googlesource.com/chromium/src/+/a19c77077f663f771e822ffb025d9cc607e9cf8e

Patch Set 1 #

Total comments: 16

Patch Set 2 : Adding the tests #

Total comments: 73

Patch Set 3 : bauerb@ comments. #

Total comments: 10

Patch Set 4 : fhorschig@ comments. #

Patch Set 5 : bauerb@ comments. #

Total comments: 50

Patch Set 6 : bauerb@ fhorschig@ comments. #

Total comments: 24

Patch Set 7 : bauerb@ fhorschig@ comments. #

Total comments: 2

Patch Set 8 : Minor comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+471 lines, -0 lines) Patch
M components/ntp_snippets/BUILD.gn View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
A components/ntp_snippets/breaking_news/subscription_json_request.h View 1 2 3 4 5 6 7 1 chunk +91 lines, -0 lines 0 comments Download
A components/ntp_snippets/breaking_news/subscription_json_request.cc View 1 2 3 4 5 6 1 chunk +181 lines, -0 lines 0 comments Download
A components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc View 1 2 3 4 5 6 7 1 chunk +196 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 31 (12 generated)
mamir
Thank you Friedrich for reviewing this.
3 years, 6 months ago (2017-05-31 10:12:07 UTC) #3
Bernhard Bauer
Drive-by review! :) https://codereview.chromium.org/2918513002/diff/1/components/ntp_snippets/breaking_news/subscription_json_request.cc File components/ntp_snippets/breaking_news/subscription_json_request.cc (right): https://codereview.chromium.org/2918513002/diff/1/components/ntp_snippets/breaking_news/subscription_json_request.cc#newcode54 components/ntp_snippets/breaking_news/subscription_json_request.cc:54: LOG_IF(DFATAL, !request_completed_callback_.is_null()) It's illegal to destroy ...
3 years, 6 months ago (2017-05-31 13:12:45 UTC) #5
mamir
Thank you Bernhard for the drive-by reviews. Please, keep them coming. (and sorry for the ...
3 years, 6 months ago (2017-05-31 14:25:03 UTC) #10
Bernhard Bauer
Thanks! Just some small issues now: https://codereview.chromium.org/2918513002/diff/40001/components/ntp_snippets/breaking_news/subscription_json_request.cc File components/ntp_snippets/breaking_news/subscription_json_request.cc (right): https://codereview.chromium.org/2918513002/diff/40001/components/ntp_snippets/breaking_news/subscription_json_request.cc#newcode57 components/ntp_snippets/breaking_news/subscription_json_request.cc:57: /*error_details=*/"The CompletionCallback was ...
3 years, 6 months ago (2017-05-31 14:45:40 UTC) #11
fhorschig
First round of comments ... as discussed, you chose a very difficult road here :D ...
3 years, 6 months ago (2017-05-31 14:51:15 UTC) #12
mamir
Thanks a lot fhorschig@ for the thorough informative review. Code is indeed much simpler now. ...
3 years, 6 months ago (2017-05-31 18:46:04 UTC) #14
mamir
Please, bauerb@ take another a look on a much simpler version ;-) Thanks! https://codereview.chromium.org/2918513002/diff/40001/components/ntp_snippets/breaking_news/subscription_json_request.cc File ...
3 years, 6 months ago (2017-05-31 19:00:54 UTC) #15
fhorschig
https://codereview.chromium.org/2918513002/diff/20001/components/ntp_snippets/breaking_news/subscription_json_request.cc File components/ntp_snippets/breaking_news/subscription_json_request.cc (right): https://codereview.chromium.org/2918513002/diff/20001/components/ntp_snippets/breaking_news/subscription_json_request.cc#newcode54 components/ntp_snippets/breaking_news/subscription_json_request.cc:54: LOG_IF(DFATAL, !request_completed_callback_.is_null()) On 2017/05/31 18:46:02, mamir wrote: > On ...
3 years, 6 months ago (2017-06-01 09:23:57 UTC) #16
Bernhard Bauer
https://codereview.chromium.org/2918513002/diff/20001/components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc File components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc (right): https://codereview.chromium.org/2918513002/diff/20001/components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc#newcode79 components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc:79: net::TestURLFetcherFactory fetcher_factory_; On 2017/06/01 09:23:55, fhorschig wrote: > On ...
3 years, 6 months ago (2017-06-01 09:31:24 UTC) #17
mamir
Thank you for the informative and useful comments. Much appreciated! https://codereview.chromium.org/2918513002/diff/20001/components/ntp_snippets/breaking_news/subscription_json_request.cc File components/ntp_snippets/breaking_news/subscription_json_request.cc (right): https://codereview.chromium.org/2918513002/diff/20001/components/ntp_snippets/breaking_news/subscription_json_request.cc#newcode54 ...
3 years, 6 months ago (2017-06-01 14:52:32 UTC) #18
fhorschig
lgtm with comments! https://codereview.chromium.org/2918513002/diff/100001/components/ntp_snippets/breaking_news/subscription_json_request.cc File components/ntp_snippets/breaking_news/subscription_json_request.cc (right): https://codereview.chromium.org/2918513002/diff/100001/components/ntp_snippets/breaking_news/subscription_json_request.cc#newcode27 components/ntp_snippets/breaking_news/subscription_json_request.cc:27: SubscriptionJsonRequest::SubscriptionJsonRequest() : weak_ptr_factory_(this) {} Does =default ...
3 years, 6 months ago (2017-06-01 16:25:22 UTC) #19
Bernhard Bauer
https://codereview.chromium.org/2918513002/diff/100001/components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc File components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc (right): https://codereview.chromium.org/2918513002/diff/100001/components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc#newcode80 components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc:80: url_fetcher->SetResponseString(""); Use std::string() instead of a literal. https://codereview.chromium.org/2918513002/diff/100001/components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc#newcode191 components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc:191: ...
3 years, 6 months ago (2017-06-01 16:54:46 UTC) #20
mamir
https://codereview.chromium.org/2918513002/diff/100001/components/ntp_snippets/breaking_news/subscription_json_request.cc File components/ntp_snippets/breaking_news/subscription_json_request.cc (right): https://codereview.chromium.org/2918513002/diff/100001/components/ntp_snippets/breaking_news/subscription_json_request.cc#newcode27 components/ntp_snippets/breaking_news/subscription_json_request.cc:27: SubscriptionJsonRequest::SubscriptionJsonRequest() : weak_ptr_factory_(this) {} On 2017/06/01 16:25:20, fhorschig wrote: ...
3 years, 6 months ago (2017-06-01 17:13:01 UTC) #21
Bernhard Bauer
https://codereview.chromium.org/2918513002/diff/100001/components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc File components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc (right): https://codereview.chromium.org/2918513002/diff/100001/components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc#newcode191 components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc:191: EXPECT_DCHECK_DEATH(request->Start(callback.Get())); On 2017/06/01 17:13:01, mamir wrote: > On 2017/06/01 ...
3 years, 6 months ago (2017-06-01 20:34:51 UTC) #22
fhorschig
https://codereview.chromium.org/2918513002/diff/100001/components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc File components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc (right): https://codereview.chromium.org/2918513002/diff/100001/components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc#newcode191 components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc:191: EXPECT_DCHECK_DEATH(request->Start(callback.Get())); On 2017/06/01 16:54:46, Bernhard Bauer wrote: > On ...
3 years, 6 months ago (2017-06-02 08:13:40 UTC) #23
mamir
https://codereview.chromium.org/2918513002/diff/100001/components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc File components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc (right): https://codereview.chromium.org/2918513002/diff/100001/components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc#newcode191 components/ntp_snippets/breaking_news/subscription_json_request_unittest.cc:191: EXPECT_DCHECK_DEATH(request->Start(callback.Get())); On 2017/06/02 08:13:40, fhorschig wrote: > On 2017/06/01 ...
3 years, 6 months ago (2017-06-02 09:06:49 UTC) #24
Bernhard Bauer
Thanks! LGTM.
3 years, 6 months ago (2017-06-02 11:18:10 UTC) #25
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/2918513002/140001
3 years, 6 months ago (2017-06-02 13:16:25 UTC) #28
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 14:56:07 UTC) #31
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/a19c77077f663f771e822ffb025d...

Powered by Google App Engine
This is Rietveld 408576698