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

Issue 2923083002: chromeos: Convert system tray session length limit to mojo (Closed)

Created:
3 years, 6 months ago by James Cook
Modified:
3 years, 6 months ago
Reviewers:
msw, dcheng
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/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Convert system tray session length limit to mojo Chrome and ash run in different processes under mustash so we need to eliminate ash-to-chrome delegate methods. This eliminates two methods on ash::SystemTrayDelegate. Use the SessionController mojom interface to send the session length limit to ash from Chrome's local state preferences. (The preferences mojo service does not yet support local state prefs.) BUG=712759 TEST=added to ash_unittests, chrome unit_tests, manually set up a managed device using go/dmstug, set the pref via policy and verify that the menu item and notification appear as expected Review-Url: https://codereview.chromium.org/2923083002 Cr-Commit-Position: refs/heads/master@{#477646} Committed: https://chromium.googlesource.com/chromium/src/+/c934896452fd0d3e518d1ffe77f68e0a25e66b34

Patch Set 1 #

Total comments: 23

Patch Set 2 : comments #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -242 lines) Patch
M ash/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M ash/public/interfaces/session_controller.mojom View 1 2 chunks +10 lines, -0 lines 0 comments Download
M ash/session/session_controller.h View 1 4 chunks +14 lines, -0 lines 0 comments Download
M ash/session/session_controller.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M ash/session/session_observer.h View 1 chunk +3 lines, -0 lines 0 comments Download
D ash/system/session/session_length_limit_observer.h View 1 chunk +0 lines, -26 lines 0 comments Download
M ash/system/session/tray_session_length_limit.h View 4 chunks +3 lines, -6 lines 0 comments Download
M ash/system/session/tray_session_length_limit.cc View 5 chunks +11 lines, -13 lines 0 comments Download
M ash/system/session/tray_session_length_limit_unittest.cc View 1 4 chunks +36 lines, -26 lines 0 comments Download
M ash/system/tray/system_tray.h View 3 chunks +3 lines, -0 lines 0 comments Download
M ash/system/tray/system_tray.cc View 2 chunks +7 lines, -1 line 0 comments Download
M ash/system/tray/system_tray_delegate.h View 2 chunks +0 lines, -12 lines 0 comments Download
M ash/system/tray/system_tray_delegate.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M ash/system/tray/system_tray_notifier.h View 3 chunks +0 lines, -9 lines 0 comments Download
M ash/system/tray/system_tray_notifier.cc View 2 chunks +0 lines, -21 lines 0 comments Download
M ash/test/test_system_tray_delegate.h View 3 chunks +0 lines, -12 lines 0 comments Download
M ash/test/test_system_tray_delegate.cc View 1 3 chunks +0 lines, -31 lines 0 comments Download
M chrome/browser/ui/ash/session_controller_client.h View 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/session_controller_client.cc View 1 5 chunks +41 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/session_controller_client_unittest.cc View 3 chunks +33 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 6 chunks +0 lines, -66 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
James Cook
msw, please take a look. (A moral victory - this CL adds tests, yet the ...
3 years, 6 months ago (2017-06-05 23:23:48 UTC) #4
msw
nice! lgtm with minor nits https://codereview.chromium.org/2923083002/diff/1/ash/public/interfaces/session_controller.mojom File ash/public/interfaces/session_controller.mojom (right): https://codereview.chromium.org/2923083002/diff/1/ash/public/interfaces/session_controller.mojom#newcode146 ash/public/interfaces/session_controller.mojom:146: // Creates or updates ...
3 years, 6 months ago (2017-06-06 19:01:05 UTC) #7
James Cook
dcheng, can I get owners approval for ash/public/interfaces/session_controller.mojom? tsepez@ is OOO. This is refactoring for ...
3 years, 6 months ago (2017-06-07 00:48:14 UTC) #11
dcheng
ipc lgtm
3 years, 6 months ago (2017-06-07 06:49:20 UTC) #14
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/2923083002/40001
3 years, 6 months ago (2017-06-07 15:04:24 UTC) #17
commit-bot: I haz the power
3 years, 6 months ago (2017-06-07 15:10:49 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/c934896452fd0d3e518d1ffe77f6...

Powered by Google App Engine
This is Rietveld 408576698