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

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

Issue 8400077: chromeos: Rename functions to be PascalCase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/screen_locker.h" 5 #include "chrome/browser/chromeos/login/screen_locker.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 delegate_->SetInputEnabled(true); 311 delegate_->SetInputEnabled(true);
312 } 312 }
313 313
314 void ScreenLocker::Signout() { 314 void ScreenLocker::Signout() {
315 // TODO(flackr): For proper functionality, check if (error_info) is NULL. 315 // TODO(flackr): For proper functionality, check if (error_info) is NULL.
316 delegate_->ClearErrors(); 316 delegate_->ClearErrors();
317 UserMetrics::RecordAction(UserMetricsAction("ScreenLocker_Signout")); 317 UserMetrics::RecordAction(UserMetricsAction("ScreenLocker_Signout"));
318 #if defined(TOOLKIT_USES_GTK) 318 #if defined(TOOLKIT_USES_GTK)
319 WmIpc::instance()->NotifyAboutSignout(); 319 WmIpc::instance()->NotifyAboutSignout();
320 #endif 320 #endif
321 DBusThreadManager::Get()->session_manager_client()->StopSession(); 321 DBusThreadManager::Get()->GetSessionManagerClient()->StopSession();
322 322
323 // Don't hide yet the locker because the chrome screen may become visible 323 // Don't hide yet the locker because the chrome screen may become visible
324 // briefly. 324 // briefly.
325 } 325 }
326 326
327 void ScreenLocker::ShowErrorMessage(const string16& message, 327 void ScreenLocker::ShowErrorMessage(const string16& message,
328 bool sign_out_only) { 328 bool sign_out_only) {
329 delegate_->SetInputEnabled(!sign_out_only); 329 delegate_->SetInputEnabled(!sign_out_only);
330 delegate_->SetSignoutEnabled(sign_out_only); 330 delegate_->SetSignoutEnabled(sign_out_only);
331 delegate_->ShowErrorMessage(message, sign_out_only); 331 delegate_->ShowErrorMessage(message, sign_out_only);
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 bool state = true; 443 bool state = true;
444 content::NotificationService::current()->Notify( 444 content::NotificationService::current()->Notify(
445 chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED, 445 chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED,
446 content::Source<ScreenLocker>(this), 446 content::Source<ScreenLocker>(this),
447 content::Details<bool>(&state)); 447 content::Details<bool>(&state));
448 if (CrosLibrary::Get()->EnsureLoaded()) 448 if (CrosLibrary::Get()->EnsureLoaded())
449 CrosLibrary::Get()->GetScreenLockLibrary()->NotifyScreenLockCompleted(); 449 CrosLibrary::Get()->GetScreenLockLibrary()->NotifyScreenLockCompleted();
450 } 450 }
451 451
452 } // namespace chromeos 452 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/login/signed_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698