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

Side by Side Diff: chrome/browser/chromeos/login/lock/webui_screen_locker.cc

Issue 2896093003: cros: Make sure views-based lock screen is destroyed after it is dismissed. (Closed)
Patch Set: Add new mojo calls Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/lock/webui_screen_locker.h" 5 #include "chrome/browser/chromeos/login/lock/webui_screen_locker.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/feature_list.h" 8 #include "base/feature_list.h"
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 } 310 }
311 311
312 bool WebUIScreenLocker::IsSigninInProgress() const { 312 bool WebUIScreenLocker::IsSigninInProgress() const {
313 // The way how screen locker is implemented right now there's no 313 // The way how screen locker is implemented right now there's no
314 // GAIA sign in in progress in any case. 314 // GAIA sign in in progress in any case.
315 return false; 315 return false;
316 } 316 }
317 317
318 void WebUIScreenLocker::Login(const UserContext& user_context, 318 void WebUIScreenLocker::Login(const UserContext& user_context,
319 const SigninSpecifics& specifics) { 319 const SigninSpecifics& specifics) {
320 chromeos::ScreenLocker::default_screen_locker()->Authenticate(user_context); 320 chromeos::ScreenLocker::default_screen_locker()->Authenticate(
321 user_context, base::BindOnce([](bool auth_success) {}));
xiyuan 2017/06/06 22:37:52 nit: Use ScreenLocker::AuthenticateCallback() to c
jdufault 2017/06/07 18:58:35 Done.
321 } 322 }
322 323
323 void WebUIScreenLocker::MigrateUserData(const std::string& old_password) { 324 void WebUIScreenLocker::MigrateUserData(const std::string& old_password) {
324 NOTREACHED(); 325 NOTREACHED();
325 } 326 }
326 327
327 void WebUIScreenLocker::OnSigninScreenReady() { 328 void WebUIScreenLocker::OnSigninScreenReady() {
328 VLOG(2) << "Lock screen signin screen is ready"; 329 VLOG(2) << "Lock screen signin screen is ready";
329 } 330 }
330 331
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 } 437 }
437 438
438 if (GetOobeUI()) { 439 if (GetOobeUI()) {
439 const gfx::Size& size = primary_display.size(); 440 const gfx::Size& size = primary_display.size();
440 GetOobeUI()->GetCoreOobeView()->SetClientAreaSize(size.width(), 441 GetOobeUI()->GetCoreOobeView()->SetClientAreaSize(size.width(),
441 size.height()); 442 size.height());
442 } 443 }
443 } 444 }
444 445
445 } // namespace chromeos 446 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698