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

Issue 1129833003: Rename "register" -> "subscribe" in the Push Messaging code. (Closed)

Created:
5 years, 7 months ago by Peter Beverloo
Modified:
5 years, 1 month ago
Reviewers:
johnme
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, johnme+watch_chromium.org, jam, mvanouwerkerk+watch_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, peter+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@p-userVisible-tests
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename "register" -> "subscribe" in the Push Messaging code. This is a mechanical change from "register" to the new keyword "subscribe", matching terminology of the Web Push protocol, the W3C Push API and GCM, the push service we use. UMA, preferences and Web exposed values are being left untouched. BUG=446883

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+615 lines, -605 lines) Patch
M chrome/browser/push_messaging/push_messaging_service_impl.h View 4 chunks +33 lines, -31 lines 3 comments Download
M chrome/browser/push_messaging/push_messaging_service_impl.cc View 12 chunks +104 lines, -105 lines 1 comment Download
M content/browser/push_messaging/push_messaging_message_filter.h View 4 chunks +43 lines, -43 lines 1 comment Download
M content/browser/push_messaging/push_messaging_message_filter.cc View 19 chunks +198 lines, -194 lines 1 comment Download
M content/child/push_messaging/push_dispatcher.h View 1 chunk +1 line, -1 line 0 comments Download
M content/child/push_messaging/push_dispatcher.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M content/child/push_messaging/push_provider.h View 1 chunk +12 lines, -11 lines 0 comments Download
M content/child/push_messaging/push_provider.cc View 9 chunks +30 lines, -30 lines 0 comments Download
M content/common/push_messaging_messages.h View 3 chunks +23 lines, -23 lines 0 comments Download
M content/public/browser/push_messaging_service.h View 3 chunks +29 lines, -29 lines 0 comments Download
M content/public/browser/push_messaging_service.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M content/public/common/push_messaging_status.h View 2 chunks +68 lines, -68 lines 0 comments Download
M content/public/common/push_messaging_status.cc View 1 chunk +27 lines, -23 lines 1 comment Download
M content/renderer/push_messaging/push_messaging_dispatcher.h View 1 chunk +5 lines, -5 lines 0 comments Download
M content/renderer/push_messaging/push_messaging_dispatcher.cc View 5 chunks +13 lines, -13 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_push_messaging_service.h View 1 chunk +8 lines, -8 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_push_messaging_service.cc View 2 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 3 (1 generated)
Peter Beverloo
--> johnme
5 years, 7 months ago (2015-05-06 20:07:03 UTC) #2
johnme
5 years, 7 months ago (2015-05-07 13:31:26 UTC) #3
lgtm with nits.

> UMA, preferences and Web exposed values are being left untouched.

Please also rename the UMA enums to match - since you won't change the ordinals,
it shouldn't break existing metrics.

https://codereview.chromium.org/1129833003/diff/1/chrome/browser/push_messagi...
File chrome/browser/push_messaging/push_messaging_service_impl.cc (right):

https://codereview.chromium.org/1129833003/diff/1/chrome/browser/push_messagi...
chrome/browser/push_messaging/push_messaging_service_impl.cc:193: // Drop
message and unsibscribe if app id was unknown (recently deleted?).
Typo

https://codereview.chromium.org/1129833003/diff/1/chrome/browser/push_messagi...
File chrome/browser/push_messaging/push_messaging_service_impl.h (right):

https://codereview.chromium.org/1129833003/diff/1/chrome/browser/push_messagi...
chrome/browser/push_messaging/push_messaging_service_impl.h:75: override;
Nit: Same indent as previous line.

https://codereview.chromium.org/1129833003/diff/1/chrome/browser/push_messagi...
chrome/browser/push_messaging/push_messaging_service_impl.h:82: override;
Nit: Same indent as previous line.

https://codereview.chromium.org/1129833003/diff/1/chrome/browser/push_messagi...
chrome/browser/push_messaging/push_messaging_service_impl.h:168: // Subscription
methods ------------------------------------------------------
Nit: "Subscribe methods" for consistency

https://codereview.chromium.org/1129833003/diff/1/content/browser/push_messag...
File content/browser/push_messaging/push_messaging_message_filter.cc (right):

https://codereview.chromium.org/1129833003/diff/1/content/browser/push_messag...
content/browser/push_messaging/push_messaging_message_filter.cc:210: //
Subscription methods on both IO and UI threads, merged in order of use from
Nit: "Subscribe" for consistency (even though it's slightly less grammatical)

https://codereview.chromium.org/1129833003/diff/1/content/browser/push_messag...
File content/browser/push_messaging/push_messaging_message_filter.h (right):

https://codereview.chromium.org/1129833003/diff/1/content/browser/push_messag...
content/browser/push_messaging/push_messaging_message_filter.h:82: const
std::string& push_subscribe_id);
Nit: "push_subscription_id"

https://codereview.chromium.org/1129833003/diff/1/content/public/common/push_...
File content/public/common/push_messaging_status.cc (right):

https://codereview.chromium.org/1129833003/diff/1/content/public/common/push_...
content/public/common/push_messaging_status.cc:21: return "Registration failed -
no Service Worker";
Please also rename all these strings. Since the web-facing API is
subscribe/unsubscribe, the error messages should talk about
subscription/unsubscription as well.

Powered by Google App Engine
This is Rietveld 408576698