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

Issue 2637403007: cros: Change max users to be a constant (Closed)

Created:
3 years, 11 months ago by xiyuan
Modified:
3 years, 10 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)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Change max users to be a constant Changing max users to be a constant instead of a dynamic config to prepare switching from SessionStateDelegate to SessionController. The current ash code uses the number in SystemTray::CreateItems during initialization and does not handle dynamic change. In SessionController case, this happens before initial SessionInfo is sent to ash. Ash will then use the default value in SessionController and whatever sent via SessionInfo later is ignored. This CL removes max_users from mojom::SessionInfo and make it constant. BUG=648964 Review-Url: https://codereview.chromium.org/2637403007 Cr-Commit-Position: refs/heads/master@{#445530} Committed: https://chromium.googlesource.com/chromium/src/+/25ecee8b92b585ea5d0cd5d12618c32588b92299

Patch Set 1 #

Patch Set 2 : fix compile #

Patch Set 3 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -24 lines) Patch
M ash/common/session/session_controller.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/common/session/session_controller.cc View 2 chunks +1 line, -2 lines 0 comments Download
M ash/common/session/session_controller_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ash/mus/test/wm_test_base.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ash/public/interfaces/session_controller.mojom View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/session_controller_client.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/ash/session_state_delegate_chromeos.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 1 chunk +1 line, -2 lines 0 comments Download
M components/session_manager/core/session_manager.h View 2 chunks +0 lines, -5 lines 0 comments Download
M components/session_manager/core/session_manager.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M components/session_manager/session_manager_types.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (26 generated)
xiyuan
3 years, 11 months ago (2017-01-23 21:31:06 UTC) #19
James Cook
LGTM
3 years, 11 months ago (2017-01-23 22:02:59 UTC) #20
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/2637403007/60001
3 years, 11 months ago (2017-01-23 22:10:54 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:60001) as https://chromium.googlesource.com/chromium/src/+/25ecee8b92b585ea5d0cd5d12618c32588b92299
3 years, 11 months ago (2017-01-23 23:05:39 UTC) #25
Wez
Hallo wfh@chromium.org! Due to a depot_tools patch which mistakenly removed the OWNERS check for non-source ...
3 years, 10 months ago (2017-02-08 02:10:02 UTC) #28
xiyuan
Oops, did not notice that owner check failed. tsepez@, could you do a retrospective review ...
3 years, 10 months ago (2017-02-08 16:03:47 UTC) #30
Will Harris
re-opening and passing to tsepez as per comment above.
3 years, 10 months ago (2017-02-12 23:54:36 UTC) #33
Tom Sepez
LGTM on removing a field from an existing object
3 years, 10 months ago (2017-02-13 17:54:57 UTC) #34
xiyuan
3 years, 10 months ago (2017-02-13 23:53:49 UTC) #35
Thanks guys.

Powered by Google App Engine
This is Rietveld 408576698