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

Issue 2617763003: Add a mojo interface for AccountId (Closed)

Created:
3 years, 11 months ago by xiyuan
Modified:
3 years, 11 months ago
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review), Alexander Alekseev
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a mojo interface for AccountId And use it for SessionController interface. BUG=648964 Review-Url: https://codereview.chromium.org/2617763003 Cr-Commit-Position: refs/heads/master@{#443356} Committed: https://chromium.googlesource.com/chromium/src/+/215f82a62a105c92faa42f068a4cfecdb63d46d1

Patch Set 1 #

Total comments: 3

Patch Set 2 : map AccountId fields instead of using its (De)Serialize and fix compile #

Patch Set 3 : fix deps #

Total comments: 2

Patch Set 4 : allow UNKNOWN account type #

Total comments: 4

Patch Set 5 : comment for AcountId default ctor #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -31 lines) Patch
M ash/common/session/session_controller.cc View 3 chunks +4 lines, -13 lines 0 comments Download
M ash/common/session/session_controller_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ash/mus/test/wm_test_base.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ash/public/interfaces/session_controller.mojom View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/session_controller_client.h View 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/session_controller_client.cc View 1 2 3 4 6 2 chunks +2 lines, -11 lines 0 comments Download
M components/signin/core/account_id/account_id.h View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
A components/signin/public/interfaces/BUILD.gn View 1 chunk +11 lines, -0 lines 0 comments Download
A components/signin/public/interfaces/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A components/signin/public/interfaces/account_id.mojom View 1 1 chunk +19 lines, -0 lines 0 comments Download
A components/signin/public/interfaces/account_id.typemap View 1 1 chunk +14 lines, -0 lines 0 comments Download
A components/signin/public/interfaces/account_id_traits.h View 1 2 3 1 chunk +107 lines, -0 lines 0 comments Download
M components/typemaps.gni View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 45 (25 generated)
xiyuan
jamescook@, please drive the review. tsepez@, please review the mojo files components/signin/public/interfaces/* Thanks.
3 years, 11 months ago (2017-01-05 23:36:27 UTC) #4
Tom Sepez
https://codereview.chromium.org/2617763003/diff/1/components/signin/public/interfaces/account_id_traits.h File components/signin/public/interfaces/account_id_traits.h (right): https://codereview.chromium.org/2617763003/diff/1/components/signin/public/interfaces/account_id_traits.h#newcode25 components/signin/public/interfaces/account_id_traits.h:25: if (!AccountId::Deserialize(serialized, out)) Is this ever called on the ...
3 years, 11 months ago (2017-01-05 23:53:28 UTC) #5
xiyuan
https://codereview.chromium.org/2617763003/diff/1/components/signin/public/interfaces/account_id_traits.h File components/signin/public/interfaces/account_id_traits.h (right): https://codereview.chromium.org/2617763003/diff/1/components/signin/public/interfaces/account_id_traits.h#newcode25 components/signin/public/interfaces/account_id_traits.h:25: if (!AccountId::Deserialize(serialized, out)) On 2017/01/05 23:53:28, Tom Sepez wrote: ...
3 years, 11 months ago (2017-01-06 00:22:48 UTC) #10
xiyuan
https://codereview.chromium.org/2617763003/diff/1/components/signin/public/interfaces/account_id_traits.h File components/signin/public/interfaces/account_id_traits.h (right): https://codereview.chromium.org/2617763003/diff/1/components/signin/public/interfaces/account_id_traits.h#newcode25 components/signin/public/interfaces/account_id_traits.h:25: if (!AccountId::Deserialize(serialized, out)) On 2017/01/06 00:22:47, xiyuan wrote: > ...
3 years, 11 months ago (2017-01-06 16:41:57 UTC) #11
James Cook
xiyuan, should I look now or wait?
3 years, 11 months ago (2017-01-06 17:06:56 UTC) #12
xiyuan
On 2017/01/06 17:06:56, James Cook wrote: > xiyuan, should I look now or wait? Sorry. ...
3 years, 11 months ago (2017-01-06 17:15:37 UTC) #13
xiyuan
Changed to use mojo serialization instead of the JSON based AccountID::Serialize/Deserialize. Ready for review. Thanks.
3 years, 11 months ago (2017-01-06 18:09:20 UTC) #16
xiyuan
Sorry for uploading another patch to fix deps. account_id_traits.h is changed to use existing public ...
3 years, 11 months ago (2017-01-06 18:42:14 UTC) #20
Tom Sepez
lgtm
3 years, 11 months ago (2017-01-06 19:35:23 UTC) #23
James Cook
LGTM https://codereview.chromium.org/2617763003/diff/60001/components/signin/public/interfaces/account_id_traits.h File components/signin/public/interfaces/account_id_traits.h (right): https://codereview.chromium.org/2617763003/diff/60001/components/signin/public/interfaces/account_id_traits.h#newcode61 components/signin/public/interfaces/account_id_traits.h:61: break; Question: So trying to get an id() ...
3 years, 11 months ago (2017-01-06 20:54:32 UTC) #26
xiyuan
https://codereview.chromium.org/2617763003/diff/60001/components/signin/public/interfaces/account_id_traits.h File components/signin/public/interfaces/account_id_traits.h (right): https://codereview.chromium.org/2617763003/diff/60001/components/signin/public/interfaces/account_id_traits.h#newcode61 components/signin/public/interfaces/account_id_traits.h:61: break; On 2017/01/06 20:54:32, James Cook wrote: > Question: ...
3 years, 11 months ago (2017-01-06 21:49:35 UTC) #27
xiyuan
msarda@, please do owner's review for components/signin/* since rogerta is ooo. blundell@, please do owner's ...
3 years, 11 months ago (2017-01-06 21:56:47 UTC) #31
James Cook
still lgtm
3 years, 11 months ago (2017-01-06 21:57:41 UTC) #32
msarda
https://codereview.chromium.org/2617763003/diff/80001/components/signin/core/account_id/account_id.h File components/signin/core/account_id/account_id.h (right): https://codereview.chromium.org/2617763003/diff/80001/components/signin/core/account_id/account_id.h#newcode27 components/signin/core/account_id/account_id.h:27: AccountId(); Why is this change needed?
3 years, 11 months ago (2017-01-09 10:28:50 UTC) #35
blundell
//components/typemaps.gni lgtm
3 years, 11 months ago (2017-01-09 12:34:52 UTC) #36
xiyuan
https://codereview.chromium.org/2617763003/diff/80001/components/signin/core/account_id/account_id.h File components/signin/core/account_id/account_id.h (right): https://codereview.chromium.org/2617763003/diff/80001/components/signin/core/account_id/account_id.h#newcode27 components/signin/core/account_id/account_id.h:27: AccountId(); On 2017/01/09 10:28:50, msarda wrote: > Why is ...
3 years, 11 months ago (2017-01-09 17:42:57 UTC) #37
msarda
lgtm https://codereview.chromium.org/2617763003/diff/80001/components/signin/core/account_id/account_id.h File components/signin/core/account_id/account_id.h (right): https://codereview.chromium.org/2617763003/diff/80001/components/signin/core/account_id/account_id.h#newcode27 components/signin/core/account_id/account_id.h:27: AccountId(); On 2017/01/09 17:42:57, xiyuan wrote: > On ...
3 years, 11 months ago (2017-01-10 15:04:22 UTC) #38
xiyuan
https://codereview.chromium.org/2617763003/diff/80001/components/signin/core/account_id/account_id.h File components/signin/core/account_id/account_id.h (right): https://codereview.chromium.org/2617763003/diff/80001/components/signin/core/account_id/account_id.h#newcode27 components/signin/core/account_id/account_id.h:27: AccountId(); On 2017/01/10 15:04:22, msarda wrote: > On 2017/01/09 ...
3 years, 11 months ago (2017-01-12 00:06:54 UTC) #39
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/2617763003/140001
3 years, 11 months ago (2017-01-12 19:27:34 UTC) #42
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 21:01:12 UTC) #45
Message was sent while issue was closed.
Committed patchset #7 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/215f82a62a105c92faa42f068a4c...

Powered by Google App Engine
This is Rietveld 408576698