| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cros/screen_lock_library.h" | 5 #include "chrome/browser/chromeos/cros/screen_lock_library.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "chrome/browser/browser_thread.h" | |
| 10 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 10 #include "content/browser/browser_thread.h" |
| 11 | 11 |
| 12 namespace chromeos { | 12 namespace chromeos { |
| 13 | 13 |
| 14 // This class handles the interaction with the ChromeOS screen lock APIs. | 14 // This class handles the interaction with the ChromeOS screen lock APIs. |
| 15 class ScreenLockLibraryImpl : public ScreenLockLibrary { | 15 class ScreenLockLibraryImpl : public ScreenLockLibrary { |
| 16 public: | 16 public: |
| 17 ScreenLockLibraryImpl() { | 17 ScreenLockLibraryImpl() { |
| 18 if (CrosLibrary::Get()->EnsureLoaded()) { | 18 if (CrosLibrary::Get()->EnsureLoaded()) { |
| 19 Init(); | 19 Init(); |
| 20 } | 20 } |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 return new ScreenLockLibraryStubImpl(); | 132 return new ScreenLockLibraryStubImpl(); |
| 133 else | 133 else |
| 134 return new ScreenLockLibraryImpl(); | 134 return new ScreenLockLibraryImpl(); |
| 135 } | 135 } |
| 136 | 136 |
| 137 } // namespace chromeos | 137 } // namespace chromeos |
| 138 | 138 |
| 139 // Allows InvokeLater without adding refcounting. This class is a Singleton and | 139 // Allows InvokeLater without adding refcounting. This class is a Singleton and |
| 140 // won't be deleted until it's last InvokeLater is run. | 140 // won't be deleted until it's last InvokeLater is run. |
| 141 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::ScreenLockLibraryImpl); | 141 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::ScreenLockLibraryImpl); |
| OLD | NEW |