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

Unified Diff: chrome/browser/chromeos/login/lock/screen_locker.cc

Issue 549453005: Run athena on device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/lock/screen_locker.cc
diff --git a/chrome/browser/chromeos/login/lock/screen_locker.cc b/chrome/browser/chromeos/login/lock/screen_locker.cc
index 05eef1eb1b2f410af545db3732ce91c50e984308..f840781e3330e54c1d55cdd86168bc74aa04546a 100644
--- a/chrome/browser/chromeos/login/lock/screen_locker.cc
+++ b/chrome/browser/chromeos/login/lock/screen_locker.cc
@@ -146,11 +146,14 @@ ScreenLocker::ScreenLocker(const user_manager::UserList& users)
manager->Initialize(SOUND_UNLOCK,
bundle.GetRawDataResource(IDR_SOUND_UNLOCK_WAV));
+#if !defined(USE_ATHENA)
+ // crbug.com/408733
ash::Shell::GetInstance()->
lock_state_controller()->SetLockScreenDisplayedCallback(
base::Bind(base::IgnoreResult(&ash::PlaySystemSoundIfSpokenFeedback),
static_cast<media::SoundsManager::SoundKey>(
chromeos::SOUND_LOCK)));
+#endif
}
void ScreenLocker::Init() {
@@ -368,6 +371,11 @@ void ScreenLocker::HandleLockScreenRequest() {
// static
void ScreenLocker::Show() {
+#if defined(USE_ATHENA)
+ // crbug.com/370175.
Dmitry Polukhin 2014/09/12 22:20:58 I think we need separate issue about running lock
oshima 2014/09/12 22:24:15 Done.
+ return;
+#endif
+
content::RecordAction(UserMetricsAction("ScreenLocker_Show"));
DCHECK(base::MessageLoopForUI::IsCurrent());
@@ -407,6 +415,11 @@ void ScreenLocker::Show() {
// static
void ScreenLocker::Hide() {
+#if defined(USE_ATHENA)
+ // crbug.com/370175.
+ return;
+#endif
+
DCHECK(base::MessageLoopForUI::IsCurrent());
// For a guest/demo user, screen_locker_ would have never been initialized.
if (user_manager::UserManager::Get()->IsLoggedInAsGuest() ||
« no previous file with comments | « chrome/browser/chromeos/first_run/first_run_controller.cc ('k') | chrome/browser/chromeos/login/ui/login_display_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698