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

Issue 9455038: Screensaver at login screen. (Closed)

Created:
8 years, 10 months ago by rkc
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Aaron Boodman, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, mihaip+watch_chromium.org, pastarmovj, James Cook
Visibility:
Public.

Description

Screensaver at login screen. This CL adds code to show a screensaver on the login screen. The location of the screensaver and timeout for it to show up are currently hard coded but will be changed to pull from an enterprise policy once work on that end is completed. The screensaver stays active only on the login screen, if any user logs on, we de-activate the screensaver for the rest of the session. Since logout causes a Chrome restart, we will be active on the login screen again. If the screensaver crashes, we reload the extension and show ourselves again. R=sky@chromium.org,xiyuan@chromium.org,yoz@chromium.org BUG=chromium-os:26042 TEST=Tested that the screensaver comes up on the login screen, does not come up once we log in, reloads when I manually crash the screensaver extension process. Also verified that SelectFileDialog on ChromeOS works as intended. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=123953

Patch Set 1 #

Total comments: 46

Patch Set 2 : Review changes. #

Total comments: 16

Patch Set 3 : . #

Patch Set 4 : merge #

Total comments: 4

Patch Set 5 : gtk build fix #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : and another build fix.. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+527 lines, -39 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc View 1 2 1 chunk +105 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver_unittest.cc View 1 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/ui/screensaver_extension_dialog.h View 1 2 3 4 5 6 7 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/ui/screensaver_extension_dialog.cc View 1 2 1 chunk +158 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_dialog.h View 1 2 3 4 5 6 5 chunks +16 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_dialog.cc View 1 2 4 chunks +43 lines, -33 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
rkc
8 years, 10 months ago (2012-02-24 00:54:47 UTC) #1
rkc
On 2012/02/24 00:54:47, Rahul Chaturvedi wrote: Added, sky for the UI review. xiyuan for the ...
8 years, 10 months ago (2012-02-24 00:58:02 UTC) #2
sky
https://chromiumcodereview.appspot.com/9455038/diff/1/chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc File chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc (right): https://chromiumcodereview.appspot.com/9455038/diff/1/chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc#newcode36 chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc:36: power_manager->AddObserver(this); What if this object is deleted before you ...
8 years, 10 months ago (2012-02-24 05:03:53 UTC) #3
Yoyo Zhou
http://codereview.chromium.org/9455038/diff/1/chrome/browser/ui/views/extensions/extension_dialog.cc File chrome/browser/ui/views/extensions/extension_dialog.cc (right): http://codereview.chromium.org/9455038/diff/1/chrome/browser/ui/views/extensions/extension_dialog.cc#newcode133 chrome/browser/ui/views/extensions/extension_dialog.cc:133: return manager->CreatePopupHost(url, browser); browser is NULL here; it's clearer ...
8 years, 10 months ago (2012-02-24 21:51:04 UTC) #4
rkc
https://chromiumcodereview.appspot.com/9455038/diff/1/chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc File chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc (right): https://chromiumcodereview.appspot.com/9455038/diff/1/chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc#newcode36 chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc:36: power_manager->AddObserver(this); On 2012/02/24 05:03:53, sky wrote: > What if ...
8 years, 10 months ago (2012-02-25 02:14:02 UTC) #5
sky
https://chromiumcodereview.appspot.com/9455038/diff/6002/chrome/browser/chromeos/ui/screensaver_extension_dialog.cc File chrome/browser/chromeos/ui/screensaver_extension_dialog.cc (right): https://chromiumcodereview.appspot.com/9455038/diff/6002/chrome/browser/chromeos/ui/screensaver_extension_dialog.cc#newcode53 chrome/browser/chromeos/ui/screensaver_extension_dialog.cc:53: : screensaver_extension_(NULL), loading_extension_(false) { nit: when you wrap, each ...
8 years, 10 months ago (2012-02-27 15:52:42 UTC) #6
xiyuan
http://codereview.chromium.org/9455038/diff/6002/chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc File chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc (right): http://codereview.chromium.org/9455038/diff/6002/chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc#newcode45 chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc:45: chromeos::DBusThreadManager::Get()->GetPowerManagerClient(); When will this dtor be called? DBusThreadManager will ...
8 years, 10 months ago (2012-02-27 18:26:30 UTC) #7
rkc
http://codereview.chromium.org/9455038/diff/6002/chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc File chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc (right): http://codereview.chromium.org/9455038/diff/6002/chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc#newcode45 chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc:45: chromeos::DBusThreadManager::Get()->GetPowerManagerClient(); On 2012/02/27 18:26:30, xiyuan wrote: > When will ...
8 years, 10 months ago (2012-02-27 22:24:42 UTC) #8
sky
LGTM
8 years, 10 months ago (2012-02-27 23:27:27 UTC) #9
xiyuan
lgtm
8 years, 10 months ago (2012-02-27 23:32:30 UTC) #10
Yoyo Zhou
LGTM
8 years, 10 months ago (2012-02-27 23:45:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/9455038/12001
8 years, 10 months ago (2012-02-27 23:46:31 UTC) #12
commit-bot: I haz the power
Can't apply patch for file chrome/browser/chromeos/chrome_browser_main_chromeos.cc. While running patch -p1 --forward --force; patching file chrome/browser/chromeos/chrome_browser_main_chromeos.cc ...
8 years, 10 months ago (2012-02-27 23:46:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/9455038/13018
8 years, 10 months ago (2012-02-27 23:50:02 UTC) #14
commit-bot: I haz the power
Change committed as 123906
8 years, 9 months ago (2012-02-28 05:36:13 UTC) #15
Nikita (slow)
https://chromiumcodereview.appspot.com/9455038/diff/13018/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://chromiumcodereview.appspot.com/9455038/diff/13018/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode204 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:204: if (parsed_command_line.HasSwitch(switches::kEnableKioskMode)) Does enterprise policy support altering cmdline flags? ...
8 years, 9 months ago (2012-02-28 12:10:59 UTC) #16
rkc
8 years, 9 months ago (2012-02-29 04:43:27 UTC) #17
https://chromiumcodereview.appspot.com/9455038/diff/13018/chrome/browser/chro...
File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right):

https://chromiumcodereview.appspot.com/9455038/diff/13018/chrome/browser/chro...
chrome/browser/chromeos/chrome_browser_main_chromeos.cc:204: if
(parsed_command_line.HasSwitch(switches::kEnableKioskMode))
On 2012/02/28 12:10:59, Nikita Kostylev wrote:
> Does enterprise policy support altering cmdline flags?
> These flags are not mentioned in the design document.

These flags are placeholders for till when the enterprise policy is ready.

https://chromiumcodereview.appspot.com/9455038/diff/13018/chrome/browser/chro...
File chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc (right):

https://chromiumcodereview.appspot.com/9455038/diff/13018/chrome/browser/chro...
chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc:97: LOG(WARNING) <<
"Screensaver shutdown called when uninitialized.";
On 2012/02/28 12:10:59, Nikita Kostylev wrote:
> When kiosk mode is not enabled, you'll be calling
ShutdownKioskModeScreensaver()
> on each Chrome shutdown so this warning should be removed.

Fixed in a follow-on CL (http://codereview.chromium.org/9538002/).

Powered by Google App Engine
This is Rietveld 408576698