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

Issue 4960003: Don't register gmail users at the device management server (Closed)

Created:
10 years, 1 month ago by gfeher
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, Paweł Hajdan Jr., nkostylev+cc_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Don't register gmail users at the device management server Make DeviceTokenFetcher wait until the name of the logged-in user is broadcasted, and only allow registering at DMServer if the user has a non-gmail address. BUG=62477 TEST=DeviceTokenFetcherTest.FetchBetweenTokenNotifyAndLoginNotify,DeviceTokenFetcherTest.FetchWithNonDasherUsername Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67412

Patch Set 1 #

Patch Set 2 : safer username checks #

Patch Set 3 : nits #

Patch Set 4 : " #

Total comments: 8

Patch Set 5 : " #

Patch Set 6 : " #

Patch Set 7 : eliminate ugly test hack #

Patch Set 8 : rebase #

Patch Set 9 : chop off interfacing with sync, do tests by overriding DeviceTokenFetcher::GetCurrentUser #

Patch Set 10 : nits #

Patch Set 11 : fix #

Patch Set 12 : fix failing unit_tests on non-ChromeOS bots #

Patch Set 13 : add back support for sync #

Patch Set 14 : " #

Patch Set 15 : " #

Patch Set 16 : " #

Total comments: 21

Patch Set 17 : address comments (attempt 1) #

Patch Set 18 : " #

Total comments: 15

Patch Set 19 : addressed comments, moved TestingDeviceTokenFetcher::GetCurrentUser to the .cc file #

Patch Set 20 : rebase #

Patch Set 21 : " #

Patch Set 22 : rebase + address comments #

Patch Set 23 : " #

Patch Set 24 : " #

Patch Set 25 : rebase again #

Patch Set 26 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -57 lines) Patch
M chrome/browser/policy/device_management_policy_provider.h View 9 10 11 12 13 14 15 16 17 18 19 20 21 4 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider.cc View 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +20 lines, -10 lines 0 comments Download
M chrome/browser/policy/device_management_policy_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 4 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/policy/device_token_fetcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/policy/device_token_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +85 lines, -14 lines 1 comment Download
M chrome/browser/policy/device_token_fetcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 10 chunks +43 lines, -18 lines 0 comments Download
M chrome/browser/policy/profile_policy_context.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 5 6 7 8 9 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/testing_device_token_fetcher.h View 13 14 15 16 17 18 19 20 21 22 23 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/test/testing_device_token_fetcher.cc View 13 14 15 16 17 18 19 20 21 22 23 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
gfeher
Here is the long-awaited, beautiful hack! Please review it.
10 years, 1 month ago (2010-11-15 18:11:40 UTC) #1
Mattias Nissler (ping if slow)
Looks pretty good, the only thing that bothers me is the injected_username hack. Heck, it's ...
10 years, 1 month ago (2010-11-16 09:54:31 UTC) #2
gfeher
I've removed the hack which has resulted in adding a TODO at another place of ...
10 years, 1 month ago (2010-11-16 17:37:00 UTC) #3
gfeher
I have removed support for sync SigninManager for now, and created TestingDeviceTokenFetcher for tests. Please ...
10 years, 1 month ago (2010-11-17 15:15:50 UTC) #4
gfeher
Bots hopefully fixed.
10 years, 1 month ago (2010-11-17 16:18:34 UTC) #5
gfeher
I've added back support for Sync. http://codereview.chromium.org/4960003/diff/56002/chrome/browser/policy/device_management_policy_provider_unittest.cc File chrome/browser/policy/device_management_policy_provider_unittest.cc (right): http://codereview.chromium.org/4960003/diff/56002/chrome/browser/policy/device_management_policy_provider_unittest.cc#newcode138 chrome/browser/policy/device_management_policy_provider_unittest.cc:138: // immediately provided ...
10 years, 1 month ago (2010-11-22 16:05:51 UTC) #6
Mattias Nissler (ping if slow)
A first round of comments. http://codereview.chromium.org/4960003/diff/56002/chrome/browser/policy/device_management_policy_provider_unittest.cc File chrome/browser/policy/device_management_policy_provider_unittest.cc (right): http://codereview.chromium.org/4960003/diff/56002/chrome/browser/policy/device_management_policy_provider_unittest.cc#newcode64 chrome/browser/policy/device_management_policy_provider_unittest.cc:64: static_cast<TestingDeviceTokenFetcher*> ( No space ...
10 years, 1 month ago (2010-11-22 20:36:08 UTC) #7
gfeher
Sorry about the junk. I've addressed your issues. http://codereview.chromium.org/4960003/diff/56002/chrome/browser/policy/device_management_policy_provider_unittest.cc File chrome/browser/policy/device_management_policy_provider_unittest.cc (right): http://codereview.chromium.org/4960003/diff/56002/chrome/browser/policy/device_management_policy_provider_unittest.cc#newcode64 chrome/browser/policy/device_management_policy_provider_unittest.cc:64: static_cast<TestingDeviceTokenFetcher*> ...
10 years, 1 month ago (2010-11-23 13:47:50 UTC) #8
Mattias Nissler (ping if slow)
Looks pretty good to me, just a few nits to fix. http://codereview.chromium.org/4960003/diff/78001/chrome/test/testing_device_token_fetcher.cc File chrome/test/testing_device_token_fetcher.cc (right): ...
10 years, 1 month ago (2010-11-23 16:00:43 UTC) #9
danno
http://codereview.chromium.org/4960003/diff/78001/chrome/browser/policy/device_token_fetcher.cc File chrome/browser/policy/device_token_fetcher.cc (right): http://codereview.chromium.org/4960003/diff/78001/chrome/browser/policy/device_token_fetcher.cc#newcode32 chrome/browser/policy/device_token_fetcher.cc:32: const char* kNonDasherDomains[] = { See comment below about ...
10 years, 1 month ago (2010-11-23 17:04:49 UTC) #10
gfeher
http://codereview.chromium.org/4960003/diff/78001/chrome/browser/policy/device_token_fetcher.cc File chrome/browser/policy/device_token_fetcher.cc (right): http://codereview.chromium.org/4960003/diff/78001/chrome/browser/policy/device_token_fetcher.cc#newcode32 chrome/browser/policy/device_token_fetcher.cc:32: const char* kNonDasherDomains[] = { On 2010/11/23 17:04:49, danno ...
10 years, 1 month ago (2010-11-24 19:38:40 UTC) #11
Mattias Nissler (ping if slow)
LGTM.
10 years ago (2010-11-25 09:25:18 UTC) #12
Nikita (slow)
http://codereview.chromium.org/4960003/diff/78001/chrome/browser/policy/device_token_fetcher.cc File chrome/browser/policy/device_token_fetcher.cc (right): http://codereview.chromium.org/4960003/diff/78001/chrome/browser/policy/device_token_fetcher.cc#newcode33 chrome/browser/policy/device_token_fetcher.cc:33: "@googlemail.com", Just a note, that I've been able to ...
10 years ago (2010-11-25 12:18:00 UTC) #13
danno
LGTM.
10 years ago (2010-11-25 13:22:00 UTC) #14
danno
The changes to ensure token/policy path consistency LGTM.
10 years ago (2010-11-25 13:23:54 UTC) #15
Jakob Kummerow
I know this CL has already been landed, but the following is important (I think): ...
10 years ago (2010-11-27 10:56:29 UTC) #16
Jakob Kummerow
10 years ago (2010-11-27 10:57:23 UTC) #17
Jakob Kummerow
10 years ago (2010-11-29 09:48:58 UTC) #18
>
http://codereview.chromium.org/4960003/diff/84002/chrome/browser/policy/devic...
> File chrome/browser/policy/device_token_fetcher.cc (right):
> 
>
http://codereview.chromium.org/4960003/diff/84002/chrome/browser/policy/devic...
> chrome/browser/policy/device_token_fetcher.cc:233: && !username.empty()) {
> I strongly suggest to remove this line. 

OK, just for the record: In our offline discussion you convinced me that
considering the way the authentication system works, this line doesn't hurt us.

Powered by Google App Engine
This is Rietveld 408576698