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

Issue 301973009: Add browser-global GCMDriver (Closed)

Created:
6 years, 6 months ago by bartfab (slow)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, johnme
Visibility:
Public.

Description

Add browser-global GCMDriver This CL adds a browser-global GCMDriver instance. This GCM connection can be used even if no session is in progress and no user is signed in. Since GCMDriverDesktop was originally meant to work for signed-in users only, it still depends on an IdentityProvider. The CL introduces a temporary DummyIdentityProvider to satisfy the dependency. This dummy class will be deleted when GCMDriver's dependency on IdentityProvider is removed. BUG=376746 TEST=Covered by GCMDriverTest.* unit tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275134

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebased. Addressed comments. #

Total comments: 4

Patch Set 3 : Addressed comments. #

Patch Set 4 : Rebased. #

Patch Set 5 : Fix build on Android. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -128 lines) Patch
M chrome/browser/browser_process.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 3 4 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 7 chunks +49 lines, -0 lines 0 comments Download
A chrome/browser/services/gcm/gcm_desktop_utils.h View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
A + chrome/browser/services/gcm/gcm_desktop_utils.cc View 1 2 3 chunks +34 lines, -3 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 2 2 chunks +5 lines, -21 lines 0 comments Download
M chrome/browser/services/gcm/gcm_utils.h View 1 2 1 chunk +0 lines, -17 lines 0 comments Download
M chrome/browser/services/gcm/gcm_utils.cc View 1 2 1 chunk +0 lines, -67 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/common/chrome_paths.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/common/chrome_paths.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M google_apis/BUILD.gn View 1 2 chunks +9 lines, -0 lines 0 comments Download
A google_apis/gaia/dummy_identity_provider.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A google_apis/gaia/dummy_identity_provider.cc View 1 chunk +93 lines, -0 lines 0 comments Download
M google_apis/google_apis.gyp View 1 2 chunks +25 lines, -17 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
bartfab (slow)
This is an alternative to CL 296953006 that makes a browser-global GCMDriver available on all ...
6 years, 6 months ago (2014-05-30 12:46:51 UTC) #1
Roger Tawa OOO till Jul 10th
google_apis lgtm
6 years, 6 months ago (2014-05-30 15:07:20 UTC) #2
johnme
Ah, interesting - in http://crrev.com/278493002 (currently on the CQ) I'm splitting GCMDriver into GCMDriverDesktop and ...
6 years, 6 months ago (2014-05-30 15:30:42 UTC) #3
bartfab (slow)
On 2014/05/30 15:30:42, johnme wrote: > Ah, interesting - in http://crrev.com/278493002 (currently on the CQ) ...
6 years, 6 months ago (2014-05-30 15:37:19 UTC) #4
jianli
https://codereview.chromium.org/301973009/diff/1/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/301973009/diff/1/chrome/browser/browser_process_impl.cc#newcode1026 chrome/browser/browser_process_impl.cc:1026: gcm_driver_.reset(new gcm::GCMDriver( You need to sync to pick up ...
6 years, 6 months ago (2014-06-02 22:34:40 UTC) #5
bartfab (slow)
https://codereview.chromium.org/301973009/diff/1/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/301973009/diff/1/chrome/browser/browser_process_impl.cc#newcode1026 chrome/browser/browser_process_impl.cc:1026: gcm_driver_.reset(new gcm::GCMDriver( On 2014/06/02 22:34:40, jianli wrote: > You ...
6 years, 6 months ago (2014-06-03 13:36:49 UTC) #6
bartfab (slow)
Hi Jochen, Friendly review ping.
6 years, 6 months ago (2014-06-03 13:40:11 UTC) #7
jianli
https://codereview.chromium.org/301973009/diff/20001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/301973009/diff/20001/chrome/browser/browser_process_impl.cc#newcode1023 chrome/browser/browser_process_impl.cc:1023: base::FilePath store_path; One more thought to simplify the code ...
6 years, 6 months ago (2014-06-03 17:18:42 UTC) #8
bartfab (slow)
https://codereview.chromium.org/301973009/diff/20001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/301973009/diff/20001/chrome/browser/browser_process_impl.cc#newcode1023 chrome/browser/browser_process_impl.cc:1023: base::FilePath store_path; On 2014/06/03 17:18:42, jianli wrote: > One ...
6 years, 6 months ago (2014-06-04 11:00:48 UTC) #9
jianli
lgtm
6 years, 6 months ago (2014-06-05 05:57:00 UTC) #10
jochen (gone - plz use gerrit)
can you clarify which test covers this?
6 years, 6 months ago (2014-06-05 06:53:04 UTC) #11
bartfab (slow)
On 2014/06/05 06:53:04, jochen wrote: > can you clarify which test covers this? I clarified ...
6 years, 6 months ago (2014-06-05 08:33:02 UTC) #12
bartfab (slow)
On 2014/06/05 06:53:04, jochen wrote: > can you clarify which test covers this? I clarified ...
6 years, 6 months ago (2014-06-05 08:33:03 UTC) #13
bartfab (slow)
On 2014/06/05 06:53:04, jochen wrote: > can you clarify which test covers this? I clarified ...
6 years, 6 months ago (2014-06-05 08:33:04 UTC) #14
jochen (gone - plz use gerrit)
lgtm
6 years, 6 months ago (2014-06-05 08:52:06 UTC) #15
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 6 months ago (2014-06-05 09:02:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/301973009/40001
6 years, 6 months ago (2014-06-05 09:04:24 UTC) #17
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 6 months ago (2014-06-05 09:27:59 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/301973009/60001
6 years, 6 months ago (2014-06-05 09:29:16 UTC) #19
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 6 months ago (2014-06-05 09:58:25 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/301973009/80001
6 years, 6 months ago (2014-06-05 09:59:26 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 13:31:30 UTC) #22
commit-bot: I haz the power
6 years, 6 months ago (2014-06-05 15:25:45 UTC) #23
Message was sent while issue was closed.
Change committed as 275134

Powered by Google App Engine
This is Rietveld 408576698