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

Side by Side Diff: chrome/browser/signin/signin_manager_fake.cc

Issue 9703038: Profiles: Really fix refcounted services. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forgot to save a file. >_< Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/signin/signin_manager_fake.h" 5 #include "chrome/browser/signin/signin_manager_fake.h"
6 6
7 FakeSigninManager::FakeSigninManager() {} 7 FakeSigninManager::FakeSigninManager() {}
8 8
9 FakeSigninManager::~FakeSigninManager() {} 9 FakeSigninManager::~FakeSigninManager() {}
10 10
11 void FakeSigninManager::StartSignIn(const std::string& username, 11 void FakeSigninManager::StartSignIn(const std::string& username,
12 const std::string& password, 12 const std::string& password,
13 const std::string& login_token, 13 const std::string& login_token,
14 const std::string& login_captcha) { 14 const std::string& login_captcha) {
15 SetAuthenticatedUsername(username); 15 SetAuthenticatedUsername(username);
16 } 16 }
17 17
18 void FakeSigninManager::SignOut() { 18 void FakeSigninManager::SignOut() {
19 authenticated_username_.clear(); 19 authenticated_username_.clear();
20 } 20 }
21 21
22 // static 22 // static
23 ProfileKeyedBase* FakeSigninManager::Build(Profile* profile) { 23 ProfileKeyedService* FakeSigninManager::Build(Profile* profile) {
24 return new FakeSigninManager(); 24 return new FakeSigninManager();
25 } 25 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_manager_fake.h ('k') | chrome/browser/signin/signin_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698