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

Issue 2712693002: Implement some follow-ups after mojofiction of Push-messaging. (Closed)

Created:
3 years, 10 months ago by ke.he
Modified:
3 years, 10 months ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, Peter Beverloo, johnme+watch_chromium.org, jam, darin-cc_chromium.org, harkness+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement some follow-ups after mojofiction of Push-messaging. - In push_messaging_manager.cc, store |callback| in |data| (RegisterData) instead of passing it everywhere needs it. - Naming the functions like DidFoo as opposed to FooCallback in Push_Provider{.h|.cc}. which conveys information about the fact that something happened. - In PushProvider::SubscribeCallback(), to replace "if (!callbacks) return;" by DCHECK(callbacks). BUG=693366 Review-Url: https://codereview.chromium.org/2712693002 Cr-Commit-Position: refs/heads/master@{#452765} Committed: https://chromium.googlesource.com/chromium/src/+/f667030fb4c6bb84a55332a5335d451e541d2c02

Patch Set 1 #

Total comments: 4

Patch Set 2 : Implement some follow-ups after mojofiction of Push-messaging. #

Patch Set 3 : code rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -107 lines) Patch
M content/browser/push_messaging/push_messaging_manager.h View 2 chunks +5 lines, -12 lines 0 comments Download
M content/browser/push_messaging/push_messaging_manager.cc View 1 2 21 chunks +39 lines, -61 lines 0 comments Download
M content/child/push_messaging/push_provider.h View 3 chunks +4 lines, -4 lines 0 comments Download
M content/child/push_messaging/push_provider.cc View 4 chunks +13 lines, -19 lines 0 comments Download
M content/renderer/push_messaging/push_messaging_client.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/push_messaging/push_messaging_client.cc View 3 chunks +8 lines, -10 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
ke.he
Hi, Peter, PTAL, Thanks:)
3 years, 10 months ago (2017-02-22 15:11:44 UTC) #6
Peter Beverloo
lgtm, thanks! https://codereview.chromium.org/2712693002/diff/1/content/browser/push_messaging/push_messaging_manager.cc File content/browser/push_messaging/push_messaging_manager.cc (right): https://codereview.chromium.org/2712693002/diff/1/content/browser/push_messaging/push_messaging_manager.cc#newcode118 content/browser/push_messaging/push_messaging_manager.cc:118: SubscribeCallback callback; This will be copied, but ...
3 years, 10 months ago (2017-02-23 13:37:40 UTC) #7
ke.he
https://codereview.chromium.org/2712693002/diff/1/content/browser/push_messaging/push_messaging_manager.cc File content/browser/push_messaging/push_messaging_manager.cc (right): https://codereview.chromium.org/2712693002/diff/1/content/browser/push_messaging/push_messaging_manager.cc#newcode118 content/browser/push_messaging/push_messaging_manager.cc:118: SubscribeCallback callback; On 2017/02/23 13:37:39, Peter Beverloo wrote: > ...
3 years, 10 months ago (2017-02-24 03:24:30 UTC) #8
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/2712693002/20001
3 years, 10 months ago (2017-02-24 03:25:10 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/44932) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-24 03:27:44 UTC) #13
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/2712693002/40001
3 years, 10 months ago (2017-02-24 05:35:21 UTC) #20
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 05:41:27 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/f667030fb4c6bb84a55332a5335d...

Powered by Google App Engine
This is Rietveld 408576698