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

Side by Side Diff: chrome/browser/chromeos/cros/screen_lock_library.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. 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/cros/screen_lock_library.h" 5 #include "chrome/browser/chromeos/cros/screen_lock_library.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "chrome/browser/chromeos/cros/cros_library.h" 12 #include "chrome/browser/chromeos/cros/cros_library.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 #include "third_party/cros/chromeos_screen_lock.h" 14 #include "third_party/cros/chromeos_screen_lock.h"
15 15
16 using content::BrowserThread;
17
16 namespace chromeos { 18 namespace chromeos {
17 19
18 class ScreenLockLibraryImpl : public ScreenLockLibrary { 20 class ScreenLockLibraryImpl : public ScreenLockLibrary {
19 public: 21 public:
20 ScreenLockLibraryImpl() : screen_lock_connection_(NULL) {} 22 ScreenLockLibraryImpl() : screen_lock_connection_(NULL) {}
21 23
22 virtual ~ScreenLockLibraryImpl() { 24 virtual ~ScreenLockLibraryImpl() {
23 if (screen_lock_connection_) { 25 if (screen_lock_connection_) {
24 chromeos::DisconnectScreenLock(screen_lock_connection_); 26 chromeos::DisconnectScreenLock(screen_lock_connection_);
25 screen_lock_connection_ = NULL; 27 screen_lock_connection_ = NULL;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 ScreenLockLibrary* impl; 125 ScreenLockLibrary* impl;
124 if (stub) 126 if (stub)
125 impl = new ScreenLockLibraryStubImpl(); 127 impl = new ScreenLockLibraryStubImpl();
126 else 128 else
127 impl = new ScreenLockLibraryImpl(); 129 impl = new ScreenLockLibraryImpl();
128 impl->Init(); 130 impl->Init();
129 return impl; 131 return impl;
130 } 132 }
131 133
132 } // namespace chromeos 134 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/power_library.cc ('k') | chrome/browser/chromeos/cros/update_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698