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

Issue 338363003: Push API: register PushMessagingServiceImpl as GCMAppHandler. (Closed)

Created:
6 years, 6 months ago by Michael van Ouwerkerk
Modified:
6 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, johnme, Peter Beverloo
Project:
chromium
Visibility:
Public.

Description

Push API: register PushMessagingServiceImpl as GCMAppHandler. Based on patch 324913004 by johnme@chromium.org who is on holiday now. BUG=350378 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278087

Patch Set 1 #

Total comments: 12

Patch Set 2 : Add missing const on CanHandle. #

Total comments: 12

Patch Set 3 : Add as AppHandler before calling Register. Other review issues. #

Total comments: 12

Patch Set 4 : Rebase. Address review issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -31 lines) Patch
M chrome/browser/prefs/browser_prefs.cc View 3 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.h View 1 2 2 chunks +30 lines, -2 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.cc View 1 2 3 1 chunk +136 lines, -6 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java View 1 chunk +0 lines, -3 lines 0 comments Download
M components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMListener.java View 5 chunks +8 lines, -8 lines 0 comments Download
M components/gcm_driver/gcm_app_handler.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_app_handler.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_driver.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M components/gcm_driver/gcm_driver.cc View 1 2 3 2 chunks +12 lines, -2 lines 0 comments Download
M content/browser/push_messaging_message_filter.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Michael van Ouwerkerk
Hi Filip, Jian, as John is away on holiday for the week, I took over ...
6 years, 6 months ago (2014-06-17 16:53:52 UTC) #1
fgorski
lgtm. Thanks for being persistent about addressing the comments. I really like the CanHandle solution. ...
6 years, 6 months ago (2014-06-17 17:24:00 UTC) #2
jianli
https://codereview.chromium.org/338363003/diff/10001/chrome/browser/services/gcm/push_messaging_service_impl.cc File chrome/browser/services/gcm/push_messaging_service_impl.cc (right): https://codereview.chromium.org/338363003/diff/10001/chrome/browser/services/gcm/push_messaging_service_impl.cc#newcode24 chrome/browser/services/gcm/push_messaging_service_impl.cc:24: const std::string kAppIdPrefix = "push:"; nit: use char array. ...
6 years, 6 months ago (2014-06-17 17:59:30 UTC) #3
Michael van Ouwerkerk
Thanks for the review. Please take another look! https://codereview.chromium.org/338363003/diff/1/chrome/browser/services/gcm/push_messaging_service_impl.cc File chrome/browser/services/gcm/push_messaging_service_impl.cc (right): https://codereview.chromium.org/338363003/diff/1/chrome/browser/services/gcm/push_messaging_service_impl.cc#newcode37 chrome/browser/services/gcm/push_messaging_service_impl.cc:37: void ...
6 years, 6 months ago (2014-06-17 19:22:06 UTC) #4
Michael van Ouwerkerk
Jochen, could you review this as general owner? Filip and Jian already looked at this ...
6 years, 6 months ago (2014-06-17 19:30:42 UTC) #5
jianli
lgtm https://codereview.chromium.org/338363003/diff/30001/chrome/browser/services/gcm/push_messaging_service_impl.cc File chrome/browser/services/gcm/push_messaging_service_impl.cc (right): https://codereview.chromium.org/338363003/diff/30001/chrome/browser/services/gcm/push_messaging_service_impl.cc#newcode130 chrome/browser/services/gcm/push_messaging_service_impl.cc:130: DidRegister(app_id, callback, "", GCMClient::GCM_DISABLED); It is not about ...
6 years, 6 months ago (2014-06-17 22:05:18 UTC) #6
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/338363003/diff/30001/chrome/browser/services/gcm/push_messaging_service_impl.cc File chrome/browser/services/gcm/push_messaging_service_impl.cc (right): https://codereview.chromium.org/338363003/diff/30001/chrome/browser/services/gcm/push_messaging_service_impl.cc#newcode24 chrome/browser/services/gcm/push_messaging_service_impl.cc:24: static const char kAppIdPrefix[] = "push:"; no static ...
6 years, 6 months ago (2014-06-18 03:58:40 UTC) #7
Michael van Ouwerkerk
Thanks for the quick reviews! https://codereview.chromium.org/338363003/diff/30001/chrome/browser/services/gcm/push_messaging_service_impl.cc File chrome/browser/services/gcm/push_messaging_service_impl.cc (right): https://codereview.chromium.org/338363003/diff/30001/chrome/browser/services/gcm/push_messaging_service_impl.cc#newcode24 chrome/browser/services/gcm/push_messaging_service_impl.cc:24: static const char kAppIdPrefix[] ...
6 years, 6 months ago (2014-06-18 11:17:51 UTC) #8
Michael van Ouwerkerk
The CQ bit was checked by mvanouwerkerk@chromium.org
6 years, 6 months ago (2014-06-18 12:09:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvanouwerkerk@chromium.org/338363003/50001
6 years, 6 months ago (2014-06-18 12:10:34 UTC) #10
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 15:26:32 UTC) #11
Message was sent while issue was closed.
Change committed as 278087

Powered by Google App Engine
This is Rietveld 408576698