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

Issue 218903005: Make push messaging not create InvalidationService for login and guest (Closed)

Created:
6 years, 8 months ago by bartfab (slow)
Modified:
6 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Make push messaging not create InvalidationService for login and guest This CL prevents the push messaging API from creating InvalidationServices for the Chrome OS login and guest profiles, which do not have GAIA credentials and cannot use invalidation. BUG=358169 TEST=Updated unit tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261780

Patch Set 1 #

Patch Set 2 : Updated browser test. #

Patch Set 3 : Removed temporary method that proved unnecessary. #

Patch Set 4 : Update unit tests. #

Patch Set 5 : Added comment explaining what TestingProfileManager is needed for. #

Patch Set 6 : Fix telemetry unit tests. #

Total comments: 2

Patch Set 7 : Addressed nit. #

Patch Set 8 : Make code resilient against tests that do not create the Default profile first. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -135 lines) Patch
M chrome/browser/chromeos/drive/drive_integration_service_unittest.cc View 1 2 3 4 1 chunk +21 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.cc View 1 2 3 4 5 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_util.cc View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_api.h View 2 chunks +0 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_api.cc View 1 2 3 8 chunks +30 lines, -23 lines 0 comments Download
M chrome/browser/invalidation/invalidation_service_factory.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/invalidation/invalidation_service_factory.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc View 1 2 3 6 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 11 chunks +33 lines, -21 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_preference_unittest.cc View 1 2 3 4 11 chunks +33 lines, -13 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_session_unittest.cc View 1 2 3 6 chunks +34 lines, -9 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 3 21 chunks +47 lines, -32 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service_fake_unittest.cc View 1 2 3 6 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service_sync_unittest.cc View 1 2 3 6 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_service_unittest.cc View 1 2 3 5 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
bartfab (slow)
Hi Daniel, Could you please take a look?
6 years, 8 months ago (2014-03-31 15:11:27 UTC) #1
bartfab (slow)
Hi Drew, Could you take a look at sync_backend_host_impl.cc?
6 years, 8 months ago (2014-03-31 16:51:04 UTC) #2
dcheng
c/b/e/a/push_messaging/* LGTM
6 years, 8 months ago (2014-03-31 17:48:26 UTC) #3
dcheng
On 2014/03/31 17:48:26, dcheng wrote: > c/b/e/a/push_messaging/* LGTM (And the stuff in c/b/invalidation)
6 years, 8 months ago (2014-03-31 17:49:12 UTC) #4
bartfab (slow)
Hi Drew, Friendly review ping. It's just 2 lines :).
6 years, 8 months ago (2014-04-02 09:39:30 UTC) #5
Andrew T Wilson (Slow)
lgtm
6 years, 8 months ago (2014-04-02 11:10:33 UTC) #6
bartfab (slow)
I updated a number of unit tests so that they use a TestingProfileManager instead of ...
6 years, 8 months ago (2014-04-02 14:37:53 UTC) #7
hashimoto
On 2014/04/02 14:37:53, bartfab wrote: > I updated a number of unit tests so that ...
6 years, 8 months ago (2014-04-03 04:48:34 UTC) #8
bartfab (slow)
On 2014/04/03 04:48:34, hashimoto wrote: > On 2014/04/02 14:37:53, bartfab wrote: > > I updated ...
6 years, 8 months ago (2014-04-03 09:23:43 UTC) #9
hashimoto
chrome/browser/chromeos/drive/drive_integration_service_unittest.cc lgtm thanks
6 years, 8 months ago (2014-04-03 10:09:18 UTC) #10
kinuko
chrome/browser/sync_file_system/* lgtm
6 years, 8 months ago (2014-04-03 10:16:59 UTC) #11
Andrew T Wilson (Slow)
lgtm
6 years, 8 months ago (2014-04-03 11:00:39 UTC) #12
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 8 months ago (2014-04-03 11:09:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/218903005/80001
6 years, 8 months ago (2014-04-03 11:10:15 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 11:45:33 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-03 11:45:34 UTC) #16
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 8 months ago (2014-04-03 12:01:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/218903005/80001
6 years, 8 months ago (2014-04-03 12:03:55 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 12:30:01 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-03 12:30:01 UTC) #20
bartfab (slow)
Hi Nikita, Could you take a look at chrome/browser/chromeos/profiles/*?
6 years, 8 months ago (2014-04-03 15:05:46 UTC) #21
bartfab (slow)
Hi Xiyuan, I see that Nikita scheduled a "coding day" today, so botherhing him with ...
6 years, 8 months ago (2014-04-03 15:10:45 UTC) #22
Nikita (slow)
On 2014/04/03 15:10:45, bartfab wrote: > Hi Xiyuan, > > I see that Nikita scheduled ...
6 years, 8 months ago (2014-04-03 15:15:18 UTC) #23
Nikita (slow)
https://codereview.chromium.org/218903005/diff/100001/chrome/browser/chromeos/profiles/profile_util.cc File chrome/browser/chromeos/profiles/profile_util.cc (right): https://codereview.chromium.org/218903005/diff/100001/chrome/browser/chromeos/profiles/profile_util.cc#newcode21 chrome/browser/chromeos/profiles/profile_util.cc:21: // Using ProfileHelper::GetSigninProfile() here would lead to an infinite ...
6 years, 8 months ago (2014-04-03 15:15:25 UTC) #24
bartfab (slow)
https://codereview.chromium.org/218903005/diff/100001/chrome/browser/chromeos/profiles/profile_util.cc File chrome/browser/chromeos/profiles/profile_util.cc (right): https://codereview.chromium.org/218903005/diff/100001/chrome/browser/chromeos/profiles/profile_util.cc#newcode21 chrome/browser/chromeos/profiles/profile_util.cc:21: // Using ProfileHelper::GetSigninProfile() here would lead to an infinite ...
6 years, 8 months ago (2014-04-03 15:23:34 UTC) #25
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 8 months ago (2014-04-03 15:23:51 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/218903005/120001
6 years, 8 months ago (2014-04-03 15:26:11 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 16:42:45 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-03 16:42:45 UTC) #29
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 8 months ago (2014-04-04 09:44:36 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/218903005/140001
6 years, 8 months ago (2014-04-04 09:44:42 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-04 10:00:53 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 8 months ago (2014-04-04 10:00:54 UTC) #33
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 8 months ago (2014-04-04 12:29:48 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/218903005/140001
6 years, 8 months ago (2014-04-04 12:30:33 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/218903005/140001
6 years, 8 months ago (2014-04-04 15:26:42 UTC) #36
commit-bot: I haz the power
6 years, 8 months ago (2014-04-04 16:37:24 UTC) #37
Message was sent while issue was closed.
Change committed as 261780

Powered by Google App Engine
This is Rietveld 408576698