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

Issue 11499012: Add policy for limiting the session length (Closed)

Created:
8 years ago by bartfab (slow)
Modified:
8 years ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Add policy for limiting the session length If this policy is set, the user is logged out when the time since login reaches the limit. The CL adds a SessionLengthLimiter that enforces the limit. A separate CL will add the UI that shows a countdown timer to the user. BUG=chromium-os:26957 TEST=Manual TBR=sky@chromium.org (vor chrome_browser_chromeos.gypi) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173285

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebased. Not sure why the patch is not applying - bot source out of sync with ToT? #

Total comments: 20

Patch Set 3 : Comments addressed. SessionLengthLimiter is no longer a PKS. #

Total comments: 7

Patch Set 4 : Comments addressed. #

Patch Set 5 : Fix include order. #

Total comments: 10

Patch Set 6 : Comments addressed. #

Patch Set 7 : Removed notifications. The UI will not be needing them after all. #

Patch Set 8 : Fix test case. #

Patch Set 9 : Improved a comment. #

Patch Set 10 : Upload flaked. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+697 lines, -9 lines) Patch
M chrome/app/policy/policy_templates.json View 1 2 3 4 5 3 chunks +27 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/mock_user_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.h View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 4 5 6 chunks +17 lines, -4 lines 0 comments Download
A chrome/browser/chromeos/power/session_length_limiter.h View 1 2 3 4 5 6 7 8 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/power/session_length_limiter.cc View 1 2 3 4 5 6 1 chunk +166 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/power/session_length_limiter_unittest.cc View 1 2 3 4 5 6 1 chunk +384 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
bartfab (slow)
Hi everyone, This is missing part of public accounts that we want to land for ...
8 years ago (2012-12-11 23:29:20 UTC) #1
bartfab (slow)
https://codereview.chromium.org/11499012/diff/1/chrome/browser/chromeos/login/user_manager.h File chrome/browser/chromeos/login/user_manager.h (right): https://codereview.chromium.org/11499012/diff/1/chrome/browser/chromeos/login/user_manager.h#newcode195 chrome/browser/chromeos/login/user_manager.h:195: virtual bool HasBrowserRestarted() const = 0; I am not ...
8 years ago (2012-12-11 23:32:04 UTC) #2
sail
profiles/* LGTM
8 years ago (2012-12-12 04:06:56 UTC) #3
Mattias Nissler (ping if slow)
https://codereview.chromium.org/11499012/diff/6001/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://codereview.chromium.org/11499012/diff/6001/chrome/app/policy/policy_templates.json#newcode3833 chrome/app/policy/policy_templates.json:3833: When this policy is set, it specifies the the ...
8 years ago (2012-12-12 10:12:57 UTC) #4
bartfab (slow)
https://chromiumcodereview.appspot.com/11499012/diff/6001/chrome/app/policy/policy_templates.json File chrome/app/policy/policy_templates.json (right): https://chromiumcodereview.appspot.com/11499012/diff/6001/chrome/app/policy/policy_templates.json#newcode3833 chrome/app/policy/policy_templates.json:3833: When this policy is set, it specifies the the ...
8 years ago (2012-12-13 16:22:48 UTC) #5
Nikita (slow)
https://chromiumcodereview.appspot.com/11499012/diff/11001/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): https://chromiumcodereview.appspot.com/11499012/diff/11001/chrome/browser/chromeos/login/user_manager_impl.cc#newcode238 chrome/browser/chromeos/login/user_manager_impl.cc:238: session_length_limiter_.reset(new SessionLengthLimiter(NULL, Why do you need to create session ...
8 years ago (2012-12-14 11:56:10 UTC) #6
bartfab (slow)
https://chromiumcodereview.appspot.com/11499012/diff/11001/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): https://chromiumcodereview.appspot.com/11499012/diff/11001/chrome/browser/chromeos/login/user_manager_impl.cc#newcode238 chrome/browser/chromeos/login/user_manager_impl.cc:238: session_length_limiter_.reset(new SessionLengthLimiter(NULL, On 2012/12/14 11:56:10, Nikita Kostylev wrote: > ...
8 years ago (2012-12-14 11:59:28 UTC) #7
Nikita (slow)
https://chromiumcodereview.appspot.com/11499012/diff/11001/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): https://chromiumcodereview.appspot.com/11499012/diff/11001/chrome/browser/chromeos/login/user_manager_impl.cc#newcode595 chrome/browser/chromeos/login/user_manager_impl.cc:595: return command_line->HasSwitch(switches::kLoginManager) && When browser will be restarted after ...
8 years ago (2012-12-14 12:03:06 UTC) #8
Nikita (slow)
https://chromiumcodereview.appspot.com/11499012/diff/11001/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): https://chromiumcodereview.appspot.com/11499012/diff/11001/chrome/browser/chromeos/login/user_manager_impl.cc#newcode238 chrome/browser/chromeos/login/user_manager_impl.cc:238: session_length_limiter_.reset(new SessionLengthLimiter(NULL, On 2012/12/14 11:59:28, bartfab wrote: > On ...
8 years ago (2012-12-14 12:14:07 UTC) #9
bartfab (slow)
https://chromiumcodereview.appspot.com/11499012/diff/11001/chrome/browser/chromeos/login/user_manager_impl.cc File chrome/browser/chromeos/login/user_manager_impl.cc (right): https://chromiumcodereview.appspot.com/11499012/diff/11001/chrome/browser/chromeos/login/user_manager_impl.cc#newcode595 chrome/browser/chromeos/login/user_manager_impl.cc:595: return command_line->HasSwitch(switches::kLoginManager) && On 2012/12/14 12:03:06, Nikita Kostylev wrote: ...
8 years ago (2012-12-14 12:24:41 UTC) #10
Nikita (slow)
>> SessionLengthLimiter is no longer a PKS Makes sense to update description.
8 years ago (2012-12-14 12:54:22 UTC) #11
Nikita (slow)
lgtm https://chromiumcodereview.appspot.com/11499012/diff/15002/chrome/browser/chromeos/power/session_length_limiter.cc File chrome/browser/chromeos/power/session_length_limiter.cc (right): https://chromiumcodereview.appspot.com/11499012/diff/15002/chrome/browser/chromeos/power/session_length_limiter.cc#newcode31 chrome/browser/chromeos/power/session_length_limiter.cc:31: const int kSessionLengthLimitMaxMs = 24 * 60 * ...
8 years ago (2012-12-14 13:07:42 UTC) #12
bartfab (slow)
https://chromiumcodereview.appspot.com/11499012/diff/15002/chrome/browser/chromeos/power/session_length_limiter.cc File chrome/browser/chromeos/power/session_length_limiter.cc (right): https://chromiumcodereview.appspot.com/11499012/diff/15002/chrome/browser/chromeos/power/session_length_limiter.cc#newcode31 chrome/browser/chromeos/power/session_length_limiter.cc:31: const int kSessionLengthLimitMaxMs = 24 * 60 * 60 ...
8 years ago (2012-12-14 17:23:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11499012/12007
8 years ago (2012-12-14 17:23:47 UTC) #14
commit-bot: I haz the power
Presubmit check for 11499012-12007 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-14 17:23:57 UTC) #15
bartfab (slow)
TBR'd Scott for chrome_browser_chromeos.gypi and notification types.
8 years ago (2012-12-14 17:29:16 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11499012/12007
8 years ago (2012-12-14 17:30:15 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests
8 years ago (2012-12-14 19:12:31 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11499012/19005
8 years ago (2012-12-14 20:59:01 UTC) #19
commit-bot: I haz the power
Presubmit check for 11499012-19005 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-14 20:59:11 UTC) #20
bartfab (slow)
The UI that will show the remaining session time is here: https://chromiumcodereview.appspot.com/11568036/ During the review ...
8 years ago (2012-12-14 20:59:23 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11499012/19005
8 years ago (2012-12-14 21:02:03 UTC) #22
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-15 00:02:39 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11499012/19005
8 years ago (2012-12-15 07:17:54 UTC) #24
bartfab (slow)
8 years ago (2012-12-15 12:03:42 UTC) #25
Message was sent while issue was closed.
Committed as http://crrev.com/173285

Powered by Google App Engine
This is Rietveld 408576698