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

Issue 2529103002: Add account_type into AccountId (Closed)

Created:
4 years ago by Roman Sorokin (ftl)
Modified:
4 years ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, alemate+watch_chromium.org, achuith+watch_chromium.org, michaelpg+watch-options_chromium.org, pam+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add account_type into AccountId - Add Active Directory type account - Rename gaia_id_ to id_. - Add |AcccountType| param to user_manager::known_user::GetAccountId - Add |AdFromUserEmailObjGuid| |AdFromUserEmail| functions to create Active Directory account ids. This CL a preparation for crbug.com/668130 Should be fixed after migration (see crbug.com/668130) BUG=656992 TEST=none Committed: https://crrev.com/d297d94d7922ac0ebd6ca1f3db3fff6db3af24b9 Committed: https://crrev.com/fb06787846a2f824cfe48ab4118e000e89249564 Cr-Original-Commit-Position: refs/heads/master@{#440152} Cr-Commit-Position: refs/heads/master@{#440412}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Switch to enum class for AccountType #

Patch Set 3 : Fix MultiUserWindowManagerChromeOSTest.* #

Total comments: 20

Patch Set 4 : Fixed comments. #

Patch Set 5 : Fix build and tests #

Patch Set 6 : Fix tests #

Patch Set 7 : Fix more tests #

Patch Set 8 : more tests #

Total comments: 2

Patch Set 9 : Comment about AccountId::operator== #

Patch Set 10 : Fix GetCryptohomeId for platform accounts #

Patch Set 11 : Fix static initializers. Add unknown string #

Patch Set 12 : Fix build and crash #

Patch Set 13 : Fix MultiUserWindowManagerChromeOSTest.* #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -142 lines) Patch
M chrome/browser/chromeos/login/easy_unlock/bootstrap_manager.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/easy_unlock/bootstrap_user_context_initializer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager_factory.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/screens/chrome_user_selection_screen.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/screens/user_selection_screen.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_authenticator.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc View 1 2 3 5 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc View 1 2 3 6 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/user_image_source.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chromeos/cryptohome/cryptohome_parameters.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -4 lines 0 comments Download
M chromeos/login/auth/cryptohome_authenticator.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M chromeos/tpm/tpm_token_info_getter_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/signin/core/account_id/account_id.h View 1 2 3 4 5 6 7 8 3 chunks +34 lines, -4 lines 0 comments Download
M components/signin/core/account_id/account_id.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +188 lines, -55 lines 0 comments Download
M components/user_manager/known_user.h View 1 2 3 4 3 chunks +7 lines, -1 line 0 comments Download
M components/user_manager/known_user.cc View 1 2 3 4 5 6 7 8 6 chunks +131 lines, -30 lines 0 comments Download
M components/user_manager/user_manager_base.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 81 (56 generated)
Roman Sorokin (ftl)
Alex, PTAL
4 years ago (2016-11-25 14:34:09 UTC) #4
Alexander Alekseev
lgtm with nits. Thank you for this CL! https://codereview.chromium.org/2529103002/diff/1/components/signin/core/account_id/account_id.cc File components/signin/core/account_id/account_id.cc (right): https://codereview.chromium.org/2529103002/diff/1/components/signin/core/account_id/account_id.cc#newcode118 components/signin/core/account_id/account_id.cc:118: return ...
4 years ago (2016-11-27 08:41:54 UTC) #7
Alexander Alekseev
+stevenjb@ for: c/b/ui/webui/options/chromeos/user_image_source.cc +atwilson@ for: components/signin/core/account_id/account_id.h
4 years ago (2016-11-27 08:48:46 UTC) #9
Alexander Alekseev
Also, please correct CL description. This is not "temporary" as we are not going to ...
4 years ago (2016-11-27 08:51:29 UTC) #10
stevenjb
c/b/ui/webui RS LGTM
4 years ago (2016-11-28 17:53:04 UTC) #11
Andrew T Wilson (Slow)
Mostly, I don't think you should use strings as the account_type enum without a strong ...
4 years ago (2016-11-29 11:05:36 UTC) #12
Alexander Alekseev
On 2016/11/29 11:05:36, Andrew T Wilson (Slow) wrote: > Mostly, I don't think you should ...
4 years ago (2016-11-29 21:44:00 UTC) #13
Alexander Alekseev
https://codereview.chromium.org/2529103002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h File chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h (right): https://codereview.chromium.org/2529103002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h#newcode183 chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h:183: const std::string& account_type) const; On 2016/11/29 11:05:36, Andrew T ...
4 years ago (2016-11-30 04:18:42 UTC) #14
Roman Sorokin (ftl)
Alex, Drew, PTAL https://codereview.chromium.org/2529103002/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://codereview.chromium.org/2529103002/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode903 chrome/browser/chromeos/login/session/user_session_manager.cc:903: user_manager::known_user::UpdateAccountType(user_context_.GetAccountId()); On 2016/11/29 11:05:36, Andrew T ...
4 years ago (2016-12-02 11:13:11 UTC) #18
Alexander Alekseev
Roger, please take a look at changing AccountId type from string to enum (what atwilson@ ...
4 years ago (2016-12-03 04:34:36 UTC) #26
Roger Tawa OOO till Jul 10th
Hi Alexander, Yes I think it makes sense to use an enum. A few comments ...
4 years ago (2016-12-05 16:34:32 UTC) #27
Alexander Alekseev
https://codereview.chromium.org/2529103002/diff/40001/components/signin/core/account_id/account_id.cc File components/signin/core/account_id/account_id.cc (right): https://codereview.chromium.org/2529103002/diff/40001/components/signin/core/account_id/account_id.cc#newcode122 components/signin/core/account_id/account_id.cc:122: return std::string(kKeyAdIdPrefix) + gaia_id_; On 2016/12/05 16:34:31, Roger Tawa ...
4 years ago (2016-12-06 02:21:14 UTC) #28
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/2529103002/diff/40001/components/signin/core/account_id/account_id.cc File components/signin/core/account_id/account_id.cc (right): https://codereview.chromium.org/2529103002/diff/40001/components/signin/core/account_id/account_id.cc#newcode122 components/signin/core/account_id/account_id.cc:122: return std::string(kKeyAdIdPrefix) + gaia_id_; On 2016/12/06 02:21:14, Alexander Alekseev ...
4 years ago (2016-12-07 22:09:37 UTC) #29
Roman Sorokin (ftl)
Alex, Roger, PTAL. Thanks! https://codereview.chromium.org/2529103002/diff/40001/components/signin/core/account_id/account_id.cc File components/signin/core/account_id/account_id.cc (right): https://codereview.chromium.org/2529103002/diff/40001/components/signin/core/account_id/account_id.cc#newcode124 components/signin/core/account_id/account_id.cc:124: return std::string(); On 2016/12/05 16:34:31, ...
4 years ago (2016-12-13 13:45:59 UTC) #33
Andrew T Wilson (Slow)
LGTM with a nit https://codereview.chromium.org/2529103002/diff/140001/components/signin/core/account_id/account_id.cc File components/signin/core/account_id/account_id.cc (right): https://codereview.chromium.org/2529103002/diff/140001/components/signin/core/account_id/account_id.cc#newcode71 components/signin/core/account_id/account_id.cc:71: if (account_type_ == AccountType::UNKNOWN || ...
4 years ago (2016-12-15 19:03:24 UTC) #52
Roger Tawa OOO till Jul 10th
lgtm
4 years ago (2016-12-16 21:14:11 UTC) #53
Roman Sorokin (ftl)
https://codereview.chromium.org/2529103002/diff/140001/components/signin/core/account_id/account_id.cc File components/signin/core/account_id/account_id.cc (right): https://codereview.chromium.org/2529103002/diff/140001/components/signin/core/account_id/account_id.cc#newcode71 components/signin/core/account_id/account_id.cc:71: if (account_type_ == AccountType::UNKNOWN || On 2016/12/15 19:03:24, Andrew ...
4 years ago (2016-12-21 17:15:21 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2529103002/180001
4 years ago (2016-12-21 17:15:33 UTC) #59
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years ago (2016-12-21 18:11:36 UTC) #62
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/d297d94d7922ac0ebd6ca1f3db3fff6db3af24b9 Cr-Commit-Position: refs/heads/master@{#440152}
4 years ago (2016-12-21 18:13:33 UTC) #64
hcarmona
A revert of this CL (patchset #10 id:180001) has been created in https://codereview.chromium.org/2593133002/ by hcarmona@chromium.org. ...
4 years ago (2016-12-21 19:14:18 UTC) #65
Thiemo Nagel
Note that this CL also breaks guest login for Chromad: [16385:16385:1222/123245.438983:FATAL:account_id.cc(314)] Check failed: false. Unknown ...
4 years ago (2016-12-22 11:33:32 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2529103002/240001
4 years ago (2016-12-22 13:40:16 UTC) #76
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years ago (2016-12-22 14:25:19 UTC) #79
commit-bot: I haz the power
4 years ago (2016-12-22 14:28:47 UTC) #81
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/fb06787846a2f824cfe48ab4118e000e89249564
Cr-Commit-Position: refs/heads/master@{#440412}

Powered by Google App Engine
This is Rietveld 408576698