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

Issue 1425783002: Componentizing GcmProfileService. (Closed)

Created:
5 years, 1 month ago by Jitu( very slow this week)
Modified:
5 years, 1 month ago
CC:
abhi.rathore, Abhishek, blundell+watchlist_chromium.org, cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, davemoore+watch_chromium.org, droger+watchlist_chromium.org, extensions-reviews_chromium.org, johnme+watch_chromium.org, mvanouwerkerk+watch_chromium.org, oshima+watch_chromium.org, peter+watch_chromium.org, Peter Beverloo, sdefresne+watchlist_chromium.org, stevenjb+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Componentizing GcmProfileService. This class is shared by shared by the iOS port, and thus needs to decouple from //chrome dependencies for clean integration on iOS. This CL: -- Pass PrefService, FilePath, net::URLRequestContextGetter,SigninManagerBase, ProfileOAuth2TokenService, base::Closure etc instead of profile. -- Added a new file for constants. BUG=519585 TBR=rockot,stevenjb,rkc,fgorski,dcheng,skuhne,isherman,bauerb Committed: https://crrev.com/7554194aec4024a5409d2de575d8b59e4d9679c2 Cr-Commit-Position: refs/heads/master@{#357609}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 11

Patch Set 3 : fix review comments and UT error #

Total comments: 4

Patch Set 4 : Fix #

Total comments: 6

Patch Set 5 : Fixed as per comments #

Total comments: 3

Patch Set 6 : fixed comments #

Total comments: 2

Patch Set 7 : fix #

Total comments: 7

Patch Set 8 : added DCHECK instead of CHECK #

Total comments: 12

Patch Set 9 : fix #

Patch Set 10 : Rebased #

Patch Set 11 : Fix no newline at end of file [-Werror,-Wnewline-eof] #

Total comments: 3

Patch Set 12 : Fix UT errors as per comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -388 lines) Patch
M chrome/browser/chromeos/net/wake_on_wifi_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/copresence/copresence_api.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/gcm/gcm_api.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/instance_id/instance_id_apitest.cc View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_gcm_app_handler.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_gcm_app_handler_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +28 lines, -7 lines 0 comments Download
M chrome/browser/invalidation/profile_invalidation_provider_factory.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/push_messaging/push_messaging_service_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/services/gcm/fake_gcm_profile_service.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/services/gcm/fake_gcm_profile_service.cc View 2 chunks +4 lines, -1 line 0 comments Download
D chrome/browser/services/gcm/gcm_profile_service.h View 1 chunk +0 lines, -73 lines 0 comments Download
D chrome/browser/services/gcm/gcm_profile_service.cc View 1 chunk +0 lines, -206 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service_factory.cc View 1 2 3 4 5 6 7 2 chunks +27 lines, -4 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service_unittest.cc View 1 2 3 4 4 chunks +27 lines, -5 lines 0 comments Download
M chrome/browser/services/gcm/instance_id/instance_id_profile_service.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service_regular.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/gcm_internals_ui.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M components/gcm_driver.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
M components/gcm_driver/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M components/gcm_driver/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
A components/gcm_driver/gcm_driver_constants.h View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
A components/gcm_driver/gcm_driver_constants.cc View 1 chunk +15 lines, -0 lines 0 comments Download
A components/gcm_driver/gcm_profile_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +100 lines, -0 lines 0 comments Download
A + components/gcm_driver/gcm_profile_service.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +51 lines, -74 lines 0 comments Download

Messages

Total messages: 75 (26 generated)
Jitu( very slow this week)
PTAL ... It failed in some build bots for UT. Can you please help me ...
5 years, 1 month ago (2015-10-27 11:31:18 UTC) #2
droger
Looks good. I see the failures, it seems it is crashing because signin_manager_ is null. ...
5 years, 1 month ago (2015-10-27 12:23:44 UTC) #4
droger
https://codereview.chromium.org/1425783002/diff/20001/components/gcm_driver/gcm_profile_service.cc File components/gcm_driver/gcm_profile_service.cc (left): https://codereview.chromium.org/1425783002/diff/20001/components/gcm_driver/gcm_profile_service.cc#oldcode201 components/gcm_driver/gcm_profile_service.cc:201: if (identity_observer_) As pointed out by blundell: your removed ...
5 years, 1 month ago (2015-10-27 12:36:43 UTC) #5
Jitu( very slow this week)
PTAL ... https://codereview.chromium.org/1425783002/diff/20001/components/gcm_driver/gcm_profile_service.cc File components/gcm_driver/gcm_profile_service.cc (left): https://codereview.chromium.org/1425783002/diff/20001/components/gcm_driver/gcm_profile_service.cc#oldcode201 components/gcm_driver/gcm_profile_service.cc:201: if (identity_observer_) On 2015/10/27 12:36:43, droger wrote: ...
5 years, 1 month ago (2015-10-28 05:11:36 UTC) #7
droger
lgtm https://codereview.chromium.org/1425783002/diff/60001/components/gcm_driver/gcm_profile_service.cc File components/gcm_driver/gcm_profile_service.cc (right): https://codereview.chromium.org/1425783002/diff/60001/components/gcm_driver/gcm_profile_service.cc#newcode188 components/gcm_driver/gcm_profile_service.cc:188: if (identity_observer_) Use curly braces {} fot the ...
5 years, 1 month ago (2015-10-28 08:30:58 UTC) #8
droger
+zea as owner of GCM
5 years, 1 month ago (2015-10-28 08:31:19 UTC) #10
Jitu( very slow this week)
Fixed the comments... PTAL https://codereview.chromium.org/1425783002/diff/60001/components/gcm_driver/gcm_profile_service.cc File components/gcm_driver/gcm_profile_service.cc (right): https://codereview.chromium.org/1425783002/diff/60001/components/gcm_driver/gcm_profile_service.cc#newcode188 components/gcm_driver/gcm_profile_service.cc:188: if (identity_observer_) On 2015/10/28 08:30:57, ...
5 years, 1 month ago (2015-10-28 13:35:14 UTC) #11
johnme
Drive-by review: generally looks good, left two comments where things could perhaps be simpler. https://codereview.chromium.org/1425783002/diff/80001/chrome/browser/services/gcm/gcm_profile_service_factory.cc ...
5 years, 1 month ago (2015-10-28 14:34:57 UTC) #13
droger
https://codereview.chromium.org/1425783002/diff/80001/chrome/browser/services/gcm/gcm_profile_service_factory.cc File chrome/browser/services/gcm/gcm_profile_service_factory.cc (right): https://codereview.chromium.org/1425783002/diff/80001/chrome/browser/services/gcm/gcm_profile_service_factory.cc#newcode60 chrome/browser/services/gcm/gcm_profile_service_factory.cc:60: base::SequencedWorkerPool* worker_pool = On 2015/10/28 14:34:56, johnme wrote: > ...
5 years, 1 month ago (2015-10-28 14:41:08 UTC) #14
Jitu( very slow this week)
PTAL https://codereview.chromium.org/1425783002/diff/80001/chrome/browser/services/gcm/gcm_profile_service_factory.cc File chrome/browser/services/gcm/gcm_profile_service_factory.cc (right): https://codereview.chromium.org/1425783002/diff/80001/chrome/browser/services/gcm/gcm_profile_service_factory.cc#newcode60 chrome/browser/services/gcm/gcm_profile_service_factory.cc:60: base::SequencedWorkerPool* worker_pool = On 2015/10/28 14:41:08, droger wrote: ...
5 years, 1 month ago (2015-10-29 14:11:25 UTC) #15
droger
Still LGTM https://codereview.chromium.org/1425783002/diff/80001/chrome/browser/services/gcm/gcm_profile_service_factory.cc File chrome/browser/services/gcm/gcm_profile_service_factory.cc (right): https://codereview.chromium.org/1425783002/diff/80001/chrome/browser/services/gcm/gcm_profile_service_factory.cc#newcode60 chrome/browser/services/gcm/gcm_profile_service_factory.cc:60: base::SequencedWorkerPool* worker_pool = On 2015/10/29 14:11:25, jitu ...
5 years, 1 month ago (2015-10-29 14:18:06 UTC) #16
Nicolas Zea
gcm LGTM, but please consider splitting up GCMProfileService into an Android implementation and a non-Android ...
5 years, 1 month ago (2015-10-29 17:27:12 UTC) #17
johnme
lgtm, thanks
5 years, 1 month ago (2015-10-29 17:49:40 UTC) #18
Jitu( very slow this week)
@Rockot: Please do an OWNERS review of -- chrome/browser/extensions/* @Sky: Please do an OWNER review ...
5 years, 1 month ago (2015-10-30 04:31:31 UTC) #20
Jitu( very slow this week)
5 years, 1 month ago (2015-10-30 04:32:12 UTC) #22
blundell
lgtm I looked over the //chrome/browser/extensions and //chrome/browser/ui/webui changes, and they're acceptable to TBR to ...
5 years, 1 month ago (2015-10-30 08:56:49 UTC) #24
Jitu( very slow this week)
PTAL ... I have added other OWNERS for TBR. https://codereview.chromium.org/1425783002/diff/120001/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc File chrome/browser/extensions/extension_gcm_app_handler_unittest.cc (right): https://codereview.chromium.org/1425783002/diff/120001/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc#newcode214 chrome/browser/extensions/extension_gcm_app_handler_unittest.cc:214: ...
5 years, 1 month ago (2015-10-30 10:14:34 UTC) #26
blundell
lgtm Make sure to send an explicit message about who you're TBR'ing for what (e.g., ...
5 years, 1 month ago (2015-10-30 10:15:58 UTC) #27
Jitu( very slow this week)
Remaining changes are mechanical TBR'ing @stevenjb for //chrome/browser/chromeos/net/* @rkc for chrome/browser/extensions/api/copresence/* @fgorski for chrome/browser/extensions/api/gcm/* chrome/browser/extensions/api/instance_id/* ...
5 years, 1 month ago (2015-10-30 11:30:20 UTC) #34
fgorski
api/gcm and api/instance_id lgtm I do have a comment to the gcm_profile_service_factory thou https://codereview.chromium.org/1425783002/diff/140001/chrome/browser/services/gcm/gcm_profile_service_factory.cc File ...
5 years, 1 month ago (2015-10-30 13:19:06 UTC) #35
blundell
https://codereview.chromium.org/1425783002/diff/140001/chrome/browser/services/gcm/gcm_profile_service_factory.cc File chrome/browser/services/gcm/gcm_profile_service_factory.cc (right): https://codereview.chromium.org/1425783002/diff/140001/chrome/browser/services/gcm/gcm_profile_service_factory.cc#newcode59 chrome/browser/services/gcm/gcm_profile_service_factory.cc:59: CHECK(!profile->IsOffTheRecord()); On 2015/10/30 13:19:05, fgorski wrote: > Where did ...
5 years, 1 month ago (2015-10-30 13:29:08 UTC) #36
droger
https://codereview.chromium.org/1425783002/diff/140001/chrome/browser/services/gcm/gcm_profile_service_factory.cc File chrome/browser/services/gcm/gcm_profile_service_factory.cc (right): https://codereview.chromium.org/1425783002/diff/140001/chrome/browser/services/gcm/gcm_profile_service_factory.cc#newcode59 chrome/browser/services/gcm/gcm_profile_service_factory.cc:59: CHECK(!profile->IsOffTheRecord()); On 2015/10/30 13:29:07, blundell wrote: > On 2015/10/30 ...
5 years, 1 month ago (2015-10-30 13:38:30 UTC) #37
Bernhard Bauer
https://codereview.chromium.org/1425783002/diff/140001/chrome/browser/services/gcm/gcm_profile_service_factory.cc File chrome/browser/services/gcm/gcm_profile_service_factory.cc (right): https://codereview.chromium.org/1425783002/diff/140001/chrome/browser/services/gcm/gcm_profile_service_factory.cc#newcode59 chrome/browser/services/gcm/gcm_profile_service_factory.cc:59: CHECK(!profile->IsOffTheRecord()); On 2015/10/30 13:29:07, blundell wrote: > On 2015/10/30 ...
5 years, 1 month ago (2015-10-30 13:38:46 UTC) #38
fgorski
Jian Li, could you please take a look at the CHECK/DCHECK(!is off the record). To ...
5 years, 1 month ago (2015-10-30 13:40:36 UTC) #40
blundell
https://codereview.chromium.org/1425783002/diff/140001/chrome/browser/services/gcm/gcm_profile_service_factory.cc File chrome/browser/services/gcm/gcm_profile_service_factory.cc (right): https://codereview.chromium.org/1425783002/diff/140001/chrome/browser/services/gcm/gcm_profile_service_factory.cc#newcode59 chrome/browser/services/gcm/gcm_profile_service_factory.cc:59: CHECK(!profile->IsOffTheRecord()); On 2015/10/30 13:40:36, fgorski wrote: > On 2015/10/30 ...
5 years, 1 month ago (2015-10-30 13:44:49 UTC) #41
Jitu( very slow this week)
PTAL :) https://codereview.chromium.org/1425783002/diff/140001/chrome/browser/services/gcm/gcm_profile_service_factory.cc File chrome/browser/services/gcm/gcm_profile_service_factory.cc (right): https://codereview.chromium.org/1425783002/diff/140001/chrome/browser/services/gcm/gcm_profile_service_factory.cc#newcode59 chrome/browser/services/gcm/gcm_profile_service_factory.cc:59: CHECK(!profile->IsOffTheRecord()); On 2015/10/30 13:44:48, blundell wrote: > ...
5 years, 1 month ago (2015-10-30 13:52:53 UTC) #42
blundell
lgtm
5 years, 1 month ago (2015-10-30 14:09:46 UTC) #43
Mr4D (OOO till 08-26)
profile change lgtm
5 years, 1 month ago (2015-10-30 14:18:08 UTC) #44
sky
LGTM https://codereview.chromium.org/1425783002/diff/160001/components/gcm_driver/gcm_driver_constants.h File components/gcm_driver/gcm_driver_constants.h (right): https://codereview.chromium.org/1425783002/diff/160001/components/gcm_driver/gcm_driver_constants.h#newcode5 components/gcm_driver/gcm_driver_constants.h:5: // A handful of resource-like constants related to ...
5 years, 1 month ago (2015-10-30 15:36:51 UTC) #46
dcheng
chrome/browser/invalidation lgtm https://codereview.chromium.org/1425783002/diff/160001/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc File chrome/browser/extensions/extension_gcm_app_handler_unittest.cc (right): https://codereview.chromium.org/1425783002/diff/160001/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc#newcode219 chrome/browser/extensions/extension_gcm_app_handler_unittest.cc:219: scoped_ptr<gcm::GCMClientFactory>( Nit: make_scoped_ptr to take advantage of ...
5 years, 1 month ago (2015-10-30 15:44:14 UTC) #47
dcheng
chrome/browser/invalidation lgtm https://codereview.chromium.org/1425783002/diff/160001/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc File chrome/browser/extensions/extension_gcm_app_handler_unittest.cc (right): https://codereview.chromium.org/1425783002/diff/160001/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc#newcode219 chrome/browser/extensions/extension_gcm_app_handler_unittest.cc:219: scoped_ptr<gcm::GCMClientFactory>( Nit: make_scoped_ptr to take advantage of ...
5 years, 1 month ago (2015-10-30 15:44:14 UTC) #48
rkc
copresenece lgtm
5 years, 1 month ago (2015-10-30 15:47:34 UTC) #49
Jitu( very slow this week)
PTAL https://codereview.chromium.org/1425783002/diff/160001/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc File chrome/browser/extensions/extension_gcm_app_handler_unittest.cc (right): https://codereview.chromium.org/1425783002/diff/160001/chrome/browser/extensions/extension_gcm_app_handler_unittest.cc#newcode219 chrome/browser/extensions/extension_gcm_app_handler_unittest.cc:219: scoped_ptr<gcm::GCMClientFactory>( On 2015/10/30 15:44:14, dcheng wrote: > Nit: ...
5 years, 1 month ago (2015-11-02 06:50:55 UTC) #50
blundell
I don't think you actually need anyone to take another look, since everyone's nits already ...
5 years, 1 month ago (2015-11-02 08:29:14 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1425783002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1425783002/180001
5 years, 1 month ago (2015-11-02 08:46:57 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/24170)
5 years, 1 month ago (2015-11-02 08:48:50 UTC) #56
blundell
https://codereview.chromium.org/1425783002/diff/220001/components/gcm_driver/gcm_profile_service.cc File components/gcm_driver/gcm_profile_service.cc (right): https://codereview.chromium.org/1425783002/diff/220001/components/gcm_driver/gcm_profile_service.cc#newcode54 components/gcm_driver/gcm_profile_service.cc:54: scoped_ptr<IdentityProvider> identity_provider_; This needs to be an IdentityProvider* now ...
5 years, 1 month ago (2015-11-02 15:22:46 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1425783002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1425783002/240001
5 years, 1 month ago (2015-11-03 07:50:57 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/135072)
5 years, 1 month ago (2015-11-03 10:06:31 UTC) #62
Jitu( very slow this week)
On 2015/11/03 10:06:31, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 1 month ago (2015-11-03 12:52:21 UTC) #63
blundell
On 2015/11/03 12:52:21, jitu (slow this week) wrote: > On 2015/11/03 10:06:31, commit-bot: I haz ...
5 years, 1 month ago (2015-11-03 12:55:06 UTC) #64
Jitu( very slow this week)
On 2015/11/03 12:55:06, blundell wrote: > On 2015/11/03 12:52:21, jitu (slow this week) wrote: > ...
5 years, 1 month ago (2015-11-03 13:24:28 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1425783002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1425783002/240001
5 years, 1 month ago (2015-11-03 13:38:21 UTC) #67
blundell
On 2015/11/03 13:24:28, jitu (slow this week) wrote: > On 2015/11/03 12:55:06, blundell wrote: > ...
5 years, 1 month ago (2015-11-03 13:51:15 UTC) #68
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/135199)
5 years, 1 month ago (2015-11-03 15:55:10 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1425783002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1425783002/240001
5 years, 1 month ago (2015-11-03 18:37:42 UTC) #72
commit-bot: I haz the power
Committed patchset #12 (id:240001)
5 years, 1 month ago (2015-11-03 20:18:00 UTC) #73
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/7554194aec4024a5409d2de575d8b59e4d9679c2 Cr-Commit-Position: refs/heads/master@{#357609}
5 years, 1 month ago (2015-11-03 20:19:28 UTC) #74
sdefresne
5 years, 1 month ago (2015-11-03 21:43:48 UTC) #75
Message was sent while issue was closed.
On 2015/11/03 at 20:19:28, commit-bot wrote:
> Patchset 12 (id:??) landed as
https://crrev.com/7554194aec4024a5409d2de575d8b59e4d9679c2
> Cr-Commit-Position: refs/heads/master@{#357609}

Yeah!

Powered by Google App Engine
This is Rietveld 408576698