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

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

Issue 8539051: aura: Touch state file after first browser is ready. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update more includes 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 29 matching lines...) Expand all
40 #include "chrome/common/chrome_switches.h" 40 #include "chrome/common/chrome_switches.h"
41 #include "content/browser/user_metrics.h" 41 #include "content/browser/user_metrics.h"
42 #include "content/public/browser/browser_thread.h" 42 #include "content/public/browser/browser_thread.h"
43 #include "content/public/browser/notification_service.h" 43 #include "content/public/browser/notification_service.h"
44 #include "googleurl/src/gurl.h" 44 #include "googleurl/src/gurl.h"
45 #include "grit/generated_resources.h" 45 #include "grit/generated_resources.h"
46 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" 46 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h"
47 #include "ui/base/l10n/l10n_util.h" 47 #include "ui/base/l10n/l10n_util.h"
48 48
49 #if defined(TOOLKIT_USES_GTK) 49 #if defined(TOOLKIT_USES_GTK)
50 #include "chrome/browser/chromeos/wm_ipc.h" 50 #include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h"
51 #endif 51 #endif
52 52
53 using content::BrowserThread; 53 using content::BrowserThread;
54 54
55 namespace { 55 namespace {
56 56
57 // Observer to start ScreenLocker when the screen lock 57 // Observer to start ScreenLocker when the screen lock
58 class ScreenLockObserver : public chromeos::ScreenLockLibrary::Observer, 58 class ScreenLockObserver : public chromeos::ScreenLockLibrary::Observer,
59 public content::NotificationObserver { 59 public content::NotificationObserver {
60 public: 60 public:
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 bool state = true; 446 bool state = true;
447 content::NotificationService::current()->Notify( 447 content::NotificationService::current()->Notify(
448 chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED, 448 chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED,
449 content::Source<ScreenLocker>(this), 449 content::Source<ScreenLocker>(this),
450 content::Details<bool>(&state)); 450 content::Details<bool>(&state));
451 if (CrosLibrary::Get()->EnsureLoaded()) 451 if (CrosLibrary::Get()->EnsureLoaded())
452 CrosLibrary::Get()->GetScreenLockLibrary()->NotifyScreenLockCompleted(); 452 CrosLibrary::Get()->GetScreenLockLibrary()->NotifyScreenLockCompleted();
453 } 453 }
454 454
455 } // namespace chromeos 455 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller.h ('k') | chrome/browser/chromeos/login/screen_locker_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698