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

Issue 3532010: Add a pref checkbox to enable/disable screen lock for ChromeOs. (Closed)

Created:
10 years, 2 months ago by xiyuan
Modified:
9 years, 7 months ago
Reviewers:
zel
CC:
chromium-reviews, dhg, arv (Not doing code reviews), davemoore+watch_chromium.org, ben+cc_chromium.org, Benson Leung
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Add a pref checkbox to enable/disable screen lock for ChromeOs. - Add an "Account" section to personal options page that has an account picture and a checkbox to enable/disable screen lock; - Add CrosPersonalOptionsHandler to serve the section; - Add a kEnableScreenLock prefs; - Add a EnableScreenLock method to PowerLibrary to update power manager config; BUG=chromium-os:6546 TEST=This is chrome part change for chromium-os:6546. Verify that account picture shows up correctly and /var/lib/power_manager/lock_on_idle_suspend is updated correctly based on the prefs checkbox after login. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=61689

Patch Set 1 #

Total comments: 4

Patch Set 2 : address zel's comment #1 #

Patch Set 3 : fix chromeos trybot #

Patch Set 4 : firx chromeos trybot 2, set expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -6 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/cros_mock.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/cros_mock.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/mock_power_library.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/power_library.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/power_library.cc View 1 2 chunks +17 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/dom_ui/cros_personal_options_handler.h View 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/dom_ui/cros_personal_options_handler.cc View 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 4 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/options/options_ui.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/resources/options.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/resources/options/personal_options.css View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/personal_options.html View 1 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/personal_options.js View 1 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
xiyuan
10 years, 2 months ago (2010-10-04 23:52:10 UTC) #1
zel
http://codereview.chromium.org/3532010/diff/1/3 File chrome/browser/chromeos/cros/power_library.cc (right): http://codereview.chromium.org/3532010/diff/1/3#newcode16 chrome/browser/chromeos/cros/power_library.cc:16: "/var/lib/power_manager/lock_on_idle_suspend"; We should move this logic to libcros.so. I ...
10 years, 2 months ago (2010-10-05 00:43:59 UTC) #2
xiyuan
http://codereview.chromium.org/3532010/diff/1/3 File chrome/browser/chromeos/cros/power_library.cc (right): http://codereview.chromium.org/3532010/diff/1/3#newcode16 chrome/browser/chromeos/cros/power_library.cc:16: "/var/lib/power_manager/lock_on_idle_suspend"; On 2010/10/05 00:43:59, zel wrote: > We should ...
10 years, 2 months ago (2010-10-05 16:46:32 UTC) #3
xiyuan
CL updated - Call EnableScreenLock in libcros; - Changed account picture from 57x70 to 70x70 ...
10 years, 2 months ago (2010-10-05 20:00:15 UTC) #4
zel
10 years, 2 months ago (2010-10-05 20:04:46 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698