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

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

Issue 12077030: Allow signin to continue even if sync is disabled by policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows sync integration test failure Created 7 years, 10 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
« no previous file with comments | « chrome/browser/signin/signin_manager.cc ('k') | chrome/browser/signin/signin_manager_fake.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_
6 #define CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_ 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 13 matching lines...) Expand all
24 const std::string& password, 24 const std::string& password,
25 const std::string& login_token, 25 const std::string& login_token,
26 const std::string& login_captcha) OVERRIDE; 26 const std::string& login_captcha) OVERRIDE;
27 virtual void StartSignInWithCredentials(const std::string& session_index, 27 virtual void StartSignInWithCredentials(const std::string& session_index,
28 const std::string& username, 28 const std::string& username,
29 const std::string& password) OVERRIDE; 29 const std::string& password) OVERRIDE;
30 virtual void StartSignInWithOAuth(const std::string& username, 30 virtual void StartSignInWithOAuth(const std::string& username,
31 const std::string& password) OVERRIDE; 31 const std::string& password) OVERRIDE;
32 virtual void SignOut() OVERRIDE; 32 virtual void SignOut() OVERRIDE;
33 33
34 virtual bool AuthInProgress() const OVERRIDE;
35 void set_auth_in_progress(bool in_progress) {
36 auth_in_progress_ = in_progress;
37 }
38
34 // Helper function to be used with ProfileKeyedService::SetTestingFactory(). 39 // Helper function to be used with ProfileKeyedService::SetTestingFactory().
35 static ProfileKeyedService* Build(Profile* profile); 40 static ProfileKeyedService* Build(Profile* profile);
41
42 private:
43 bool auth_in_progress_;
36 }; 44 };
37 45
38 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_ 46 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FAKE_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_manager.cc ('k') | chrome/browser/signin/signin_manager_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698