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

Issue 2715903002: Re-design Unsubscribe and getPermissionStatus mojo interfaces. (Closed)

Created:
3 years, 10 months ago by ke.he
Modified:
3 years, 9 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, Peter Beverloo, johnme+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), harkness+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-design Unsubscribe and getPermissionStatus mojo interfaces. We use the ErrorType as flag to indicate the calling of unsubscribe and getPermissionStatus are success or error. So the |is_success| flag is redundant and can be removed. The ErrorType::UNKNOWN is changed into ErrorType::NONE to have a better meaning. BUG=693366 Review-Url: https://codereview.chromium.org/2715903002 Cr-Commit-Position: refs/heads/master@{#453507} Committed: https://chromium.googlesource.com/chromium/src/+/dc9d2cfd2402fe7c6e8e4b18a6cab2e03940bcb4

Patch Set 1 #

Total comments: 1

Patch Set 2 : change ErrorType::Unknown to ErrorType::None #

Total comments: 6

Patch Set 3 : Re-design Unsubscribe and getPermissionStatus mojo interfaces. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -58 lines) Patch
M content/browser/push_messaging/push_messaging_manager.cc View 1 2 4 chunks +20 lines, -18 lines 0 comments Download
M content/child/push_messaging/push_provider.h View 2 chunks +3 lines, -5 lines 0 comments Download
M content/child/push_messaging/push_provider.cc View 1 2 chunks +10 lines, -11 lines 0 comments Download
M content/common/push_messaging.mojom View 1 3 chunks +13 lines, -15 lines 0 comments Download
M content/common/push_messaging_param_traits.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushError.cpp View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/push_messaging/WebPushError.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (27 generated)
ke.he
Hi, Peter, PTAL:) By the way, I think wrapping {endpoint, options, p256dh, auth} into one ...
3 years, 10 months ago (2017-02-24 10:11:34 UTC) #12
Peter Beverloo
lgtm w/ suggested change By the way, I'll be in Tokyo on Monday and Tuesday ...
3 years, 10 months ago (2017-02-24 15:55:35 UTC) #15
ke.he
Hi, Peter, ErrorType::UNKNOWN is changed to NONE. PTAL. Hi, Tom, PTAL on the security review. ...
3 years, 9 months ago (2017-02-27 07:39:52 UTC) #20
Peter Beverloo
still lgtm Renumbering WebPushError is safe, it's not used for UMA or anything. https://codereview.chromium.org/2715903002/diff/20001/content/browser/push_messaging/push_messaging_manager.cc File ...
3 years, 9 months ago (2017-02-27 09:32:51 UTC) #23
Tom Sepez
lgtm
3 years, 9 months ago (2017-02-27 17:12:23 UTC) #24
ke.he
Thanks:) https://codereview.chromium.org/2715903002/diff/20001/content/browser/push_messaging/push_messaging_manager.cc File content/browser/push_messaging/push_messaging_manager.cc (right): https://codereview.chromium.org/2715903002/diff/20001/content/browser/push_messaging/push_messaging_manager.cc#newcode646 content/browser/push_messaging/push_messaging_manager.cc:646: callback.Run(blink::WebPushError::ErrorTypeNone /* success */, On 2017/02/27 09:32:50, Peter ...
3 years, 9 months ago (2017-02-28 05:00:50 UTC) #29
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/2715903002/40001
3 years, 9 months ago (2017-02-28 05:02:21 UTC) #32
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 05:08:26 UTC) #35
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/dc9d2cfd2402fe7c6e8e4b18a6ca...

Powered by Google App Engine
This is Rietveld 408576698