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

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

Issue 1142005: Mocks for all libcros elements (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | Annotate | Revision Log
OLDNEW
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/login_library.h" 5 #include "chrome/browser/chromeos/cros/login_library.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "chrome/browser/chrome_thread.h" 8 #include "chrome/browser/chrome_thread.h"
9 #include "chrome/browser/chromeos/cros/cros_library.h" 9 #include "chrome/browser/chromeos/cros/cros_library.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 // static 13 bool LoginLibraryImpl::EmitLoginPromptReady() {
14 LoginLibrary* LoginLibrary::Get() {
15 return Singleton<LoginLibrary>::get();
16 }
17
18 bool LoginLibrary::EmitLoginPromptReady() {
19 return chromeos::EmitLoginPromptReady(); 14 return chromeos::EmitLoginPromptReady();
20 } 15 }
21 16
22 bool LoginLibrary::StartSession(const std::string& user_email, 17 bool LoginLibraryImpl::StartSession(const std::string& user_email,
23 const std::string& unique_id /* unused */) { 18 const std::string& unique_id /* unused */) {
24 // only pass unique_id through once we use it for something. 19 // only pass unique_id through once we use it for something.
25 return chromeos::StartSession(user_email.c_str(), ""); 20 return chromeos::StartSession(user_email.c_str(), "");
26 } 21 }
27 22
28 bool LoginLibrary::StopSession(const std::string& unique_id /* unused */) { 23 bool LoginLibraryImpl::StopSession(const std::string& unique_id /* unused */) {
29 // only pass unique_id through once we use it for something. 24 // only pass unique_id through once we use it for something.
30 return chromeos::StopSession(""); 25 return chromeos::StopSession("");
31 } 26 }
32 27
33 } // namespace chromeos 28 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/login_library.h ('k') | chrome/browser/chromeos/cros/mock_cros_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698