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

Issue 330733002: Move IdentityProvider usage from GCMDriverDesktop to GCMProfileService (Closed)

Created:
6 years, 6 months ago by jianli
Modified:
6 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Move IdentityProvider usage from GCMDriverDesktop to GCMProfileService This is the 1st step towards removing sign-in enforcement for GCM. We also remove the logic to pass account IDs to check-in request since it seems to work fine without them and TokenService::GetAccounts returns the empty list. BUG=384041 TEST=existing and new tests R=bartfab@chromium.org, fgorski@chromium.org, zea@chromium.org TBR=jochen@chromium.org, rogerta@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277789

Patch Set 1 : Patch #

Total comments: 35

Patch Set 2 : Address feedback #

Total comments: 6

Patch Set 3 : Address more feedback #

Patch Set 4 : Sync #

Total comments: 4

Patch Set 5 : Sync plus address feedback #

Patch Set 6 : Fix after sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -334 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 4 3 chunks +5 lines, -14 lines 0 comments Download
M chrome/browser/services/gcm/gcm_desktop_utils.h View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/services/gcm/gcm_desktop_utils.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 2 3 4 3 chunks +73 lines, -4 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service_unittest.cc View 1 4 chunks +34 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/gcm_internals_ui.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M components/gcm_driver/fake_gcm_client.h View 1 chunk +0 lines, -1 line 0 comments Download
M components/gcm_driver/fake_gcm_client.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M components/gcm_driver/fake_gcm_driver.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M components/gcm_driver/fake_gcm_driver.cc View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M components/gcm_driver/gcm_client.h View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_client_impl.cc View 1 2 3 4 3 chunks +0 lines, -3 lines 0 comments Download
M components/gcm_driver/gcm_client_impl_unittest.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_driver.h View 1 2 3 4 2 chunks +8 lines, -3 lines 0 comments Download
M components/gcm_driver/gcm_driver_android.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_driver_android.cc View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M components/gcm_driver/gcm_driver_desktop.h View 1 2 3 4 7 chunks +10 lines, -16 lines 0 comments Download
M components/gcm_driver/gcm_driver_desktop.cc View 1 2 3 4 5 17 chunks +38 lines, -64 lines 0 comments Download
M components/gcm_driver/gcm_driver_desktop_unittest.cc View 1 2 3 4 7 chunks +4 lines, -32 lines 0 comments Download
M google_apis/BUILD.gn View 2 chunks +0 lines, -9 lines 0 comments Download
D google_apis/gaia/dummy_identity_provider.h View 1 chunk +0 lines, -39 lines 0 comments Download
D google_apis/gaia/dummy_identity_provider.cc View 1 chunk +0 lines, -93 lines 0 comments Download
M google_apis/gcm/engine/checkin_request.h View 1 3 chunks +0 lines, -4 lines 0 comments Download
M google_apis/gcm/engine/checkin_request.cc View 2 chunks +0 lines, -9 lines 0 comments Download
M google_apis/gcm/engine/checkin_request_unittest.cc View 1 5 chunks +0 lines, -6 lines 0 comments Download
M google_apis/gcm/tools/mcs_probe.cc View 1 chunk +1 line, -1 line 0 comments Download
M google_apis/google_apis.gyp View 2 chunks +0 lines, -8 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
jianli
6 years, 6 months ago (2014-06-12 21:31:06 UTC) #1
bartfab (slow)
lgtm https://codereview.chromium.org/330733002/diff/20001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/330733002/diff/20001/chrome/browser/browser_process_impl.cc#newcode95 chrome/browser/browser_process_impl.cc:95: #include "google_apis/gaia/identity_provider.h" Nit: No longer used. https://codereview.chromium.org/330733002/diff/20001/chrome/browser/browser_process_impl.cc#newcode1029 chrome/browser/browser_process_impl.cc:1029: ...
6 years, 6 months ago (2014-06-13 11:27:22 UTC) #2
jianli
https://codereview.chromium.org/330733002/diff/20001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/330733002/diff/20001/chrome/browser/browser_process_impl.cc#newcode95 chrome/browser/browser_process_impl.cc:95: #include "google_apis/gaia/identity_provider.h" On 2014/06/13 11:27:21, bartfab wrote: > Nit: ...
6 years, 6 months ago (2014-06-13 18:04:49 UTC) #3
fgorski
lgtm, but perhaps we could not modify the checkin request. https://codereview.chromium.org/330733002/diff/20001/google_apis/gcm/engine/checkin_request.cc File google_apis/gcm/engine/checkin_request.cc (left): https://codereview.chromium.org/330733002/diff/20001/google_apis/gcm/engine/checkin_request.cc#oldcode84 ...
6 years, 6 months ago (2014-06-13 18:17:10 UTC) #4
Nicolas Zea
https://codereview.chromium.org/330733002/diff/40001/chrome/browser/services/gcm/gcm_profile_service.h File chrome/browser/services/gcm/gcm_profile_service.h (right): https://codereview.chromium.org/330733002/diff/40001/chrome/browser/services/gcm/gcm_profile_service.h#newcode38 chrome/browser/services/gcm/gcm_profile_service.h:38: class GCMProfileService : public KeyedService, Agree with Filip, I ...
6 years, 6 months ago (2014-06-13 19:49:31 UTC) #5
Nicolas Zea
https://codereview.chromium.org/330733002/diff/40001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/330733002/diff/40001/chrome/browser/browser_process_impl.cc#newcode1029 chrome/browser/browser_process_impl.cc:1029: gcm_driver_->SignIn(); Why is this here? Isn't signin getting called ...
6 years, 6 months ago (2014-06-13 19:50:25 UTC) #6
jianli
On 2014/06/13 18:17:10, fgorski wrote: > lgtm, but perhaps we could not modify the checkin ...
6 years, 6 months ago (2014-06-13 21:57:54 UTC) #7
jianli
https://codereview.chromium.org/330733002/diff/40001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/330733002/diff/40001/chrome/browser/browser_process_impl.cc#newcode1029 chrome/browser/browser_process_impl.cc:1029: gcm_driver_->SignIn(); On 2014/06/13 19:50:24, Nicolas Zea wrote: > Why ...
6 years, 6 months ago (2014-06-13 21:58:04 UTC) #8
Nicolas Zea
lgtm
6 years, 6 months ago (2014-06-13 22:38:23 UTC) #9
jianli
The CQ bit was checked by jianli@chromium.org
6 years, 6 months ago (2014-06-13 22:55:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/330733002/80001
6 years, 6 months ago (2014-06-13 22:59:57 UTC) #11
jianli
The CQ bit was unchecked by jianli@chromium.org
6 years, 6 months ago (2014-06-13 23:07:49 UTC) #12
jianli
The CQ bit was checked by jianli@chromium.org
6 years, 6 months ago (2014-06-13 23:09:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/330733002/80001
6 years, 6 months ago (2014-06-13 23:10:40 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-14 19:40:01 UTC) #15
commit-bot: I haz the power
Failed to apply patch for components/gcm_driver/gcm_driver_desktop.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 6 months ago (2014-06-14 19:40:02 UTC) #16
bartfab (slow)
lgtm https://codereview.chromium.org/330733002/diff/80001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/330733002/diff/80001/chrome/browser/browser_process_impl.cc#newcode1029 chrome/browser/browser_process_impl.cc:1029: // be started when none is asking for ...
6 years, 6 months ago (2014-06-16 09:17:06 UTC) #17
jianli
https://codereview.chromium.org/330733002/diff/80001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/330733002/diff/80001/chrome/browser/browser_process_impl.cc#newcode1029 chrome/browser/browser_process_impl.cc:1029: // be started when none is asking for it. ...
6 years, 6 months ago (2014-06-16 16:52:06 UTC) #18
jianli
The CQ bit was checked by jianli@chromium.org
6 years, 6 months ago (2014-06-16 17:40:23 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jianli@chromium.org/330733002/120001
6 years, 6 months ago (2014-06-16 17:41:12 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-17 02:38:03 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/27966)
6 years, 6 months ago (2014-06-17 02:38:04 UTC) #22
jianli
6 years, 6 months ago (2014-06-17 17:04:30 UTC) #23
Message was sent while issue was closed.
Committed patchset #6 manually as r277789 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698