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

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

Issue 563553005: Remove implicit conversions from scoped_refptr to T* in c/b/chromeos/login (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 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/screen_locker.h" 5 #include "chrome/browser/chromeos/login/lock/screen_locker.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_switches.h" 10 #include "ash/ash_switches.h"
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 VLOG(1) << "Emitting SCREEN_LOCK_STATE_CHANGED with state=" << state; 454 VLOG(1) << "Emitting SCREEN_LOCK_STATE_CHANGED with state=" << state;
455 content::NotificationService::current()->Notify( 455 content::NotificationService::current()->Notify(
456 chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED, 456 chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED,
457 content::Source<ScreenLocker>(this), 457 content::Source<ScreenLocker>(this),
458 content::Details<bool>(&state)); 458 content::Details<bool>(&state));
459 459
460 VLOG(1) << "Calling session manager's HandleLockScreenDismissed D-Bus method"; 460 VLOG(1) << "Calling session manager's HandleLockScreenDismissed D-Bus method";
461 DBusThreadManager::Get()->GetSessionManagerClient()-> 461 DBusThreadManager::Get()->GetSessionManagerClient()->
462 NotifyLockScreenDismissed(); 462 NotifyLockScreenDismissed();
463 463
464 if (saved_ime_state_) { 464 if (saved_ime_state_.get()) {
465 input_method::InputMethodManager::Get()->SetState(saved_ime_state_); 465 input_method::InputMethodManager::Get()->SetState(saved_ime_state_);
466 } 466 }
467 } 467 }
468 468
469 void ScreenLocker::SetAuthenticator(Authenticator* authenticator) { 469 void ScreenLocker::SetAuthenticator(Authenticator* authenticator) {
470 authenticator_ = authenticator; 470 authenticator_ = authenticator;
471 } 471 }
472 472
473 void ScreenLocker::ScreenLockReady() { 473 void ScreenLocker::ScreenLockReady() {
474 locked_ = true; 474 locked_ = true;
(...skipping 30 matching lines...) Expand all
505 for (user_manager::UserList::const_iterator it = users_.begin(); 505 for (user_manager::UserList::const_iterator it = users_.begin();
506 it != users_.end(); 506 it != users_.end();
507 ++it) { 507 ++it) {
508 if ((*it)->email() == username) 508 if ((*it)->email() == username)
509 return true; 509 return true;
510 } 510 }
511 return false; 511 return false;
512 } 512 }
513 513
514 } // namespace chromeos 514 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/kiosk_browsertest.cc ('k') | chrome/browser/chromeos/login/screenshot_tester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698