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

Issue 6089004: [Chrome OS] Respect periods in google apps account names (Closed)

Created:
9 years, 12 months ago by Chris Masone
Modified:
9 years, 7 months ago
Reviewers:
whywhat
CC:
chromium-reviews, nkostylev+cc_chromium.org, davemoore+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

[Chrome OS] Respect periods in google apps account names When logging in to @gmail.com accounts via the web, . characters are ignored -- which we do on chrome OS. When logging into google apps accounts for OTHER domains, . characters should NOT be ignored. We were canonicalizing them out on Chrome OS, breaking login for apps users who have . embedded in their usernames. BUG=chromium-os:10397 TEST=unit tests, install on device and try cmasone@gmail.com, c.masone@gmail.com, why.you@mydomain.org and whyyou@mydomain.org. The first three work, the last one does not, as expected. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70318

Patch Set 1 #

Patch Set 2 : ws fix #

Total comments: 6

Patch Set 3 : Address avayvod comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -7 lines) Patch
M chrome/browser/chromeos/login/authenticator.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/authenticator.cc View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/authenticator_unittest.cc View 1 2 1 chunk +16 lines, -6 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Chris Masone
9 years, 12 months ago (2010-12-30 01:30:44 UTC) #1
whywhat
LGTM http://codereview.chromium.org/6089004/diff/2001/chrome/browser/chromeos/login/authenticator.cc File chrome/browser/chromeos/login/authenticator.cc (right): http://codereview.chromium.org/6089004/diff/2001/chrome/browser/chromeos/login/authenticator.cc#newcode35 chrome/browser/chromeos/login/authenticator.cc:35: // account servers do not tolerate them, so ...
9 years, 11 months ago (2010-12-30 17:37:39 UTC) #2
Chris Masone
9 years, 11 months ago (2010-12-30 18:52:50 UTC) #3
will push when the tree reopens

http://codereview.chromium.org/6089004/diff/2001/chrome/browser/chromeos/logi...
File chrome/browser/chromeos/login/authenticator.cc (right):

http://codereview.chromium.org/6089004/diff/2001/chrome/browser/chromeos/logi...
chrome/browser/chromeos/login/authenticator.cc:35: // account servers do not
tolerate them, so we don't need to either.
On 2010/12/30 17:37:39, whywhat wrote:
> TODO or actually remove the code? :)

Added a TODO instead of pulling it out, as I want to keep the change as small as
possible, as we need to backport it to 552d and 597

http://codereview.chromium.org/6089004/diff/2001/chrome/browser/chromeos/logi...
File chrome/browser/chromeos/login/authenticator.h (right):

http://codereview.chromium.org/6089004/diff/2001/chrome/browser/chromeos/logi...
chrome/browser/chromeos/login/authenticator.h:26: static const char
kSpecialCase[];
On 2010/12/30 17:37:39, whywhat wrote:
> Could be more meaningful, i.e. kTolerantDomain. A comment about what it is is
> welcome too.

I went with kSpecialCaseDomain, and added a comment.

http://codereview.chromium.org/6089004/diff/2001/chrome/browser/chromeos/logi...
File chrome/browser/chromeos/login/authenticator_unittest.cc (right):

http://codereview.chromium.org/6089004/diff/2001/chrome/browser/chromeos/logi...
chrome/browser/chromeos/login/authenticator_unittest.cc:38:
first.append(Authenticator::kSpecialCase);
On 2010/12/30 17:37:39, whywhat wrote:
> I'd just use "gmail.com" here to improve readability a little bit.

ok.

Powered by Google App Engine
This is Rietveld 408576698