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

Unified Diff: chrome/browser/signin/signin_manager_fake.cc

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, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/signin/signin_manager_fake.h ('k') | chrome/browser/signin/signin_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_manager_fake.cc
diff --git a/chrome/browser/signin/signin_manager_fake.cc b/chrome/browser/signin/signin_manager_fake.cc
index 20a8cb9fa4cc5b603d79eabb317a21c6a5db6860..6b377c15431a515d4e4df4be372cb9d5faeebb2c 100644
--- a/chrome/browser/signin/signin_manager_fake.cc
+++ b/chrome/browser/signin/signin_manager_fake.cc
@@ -10,9 +10,10 @@
#include "chrome/common/chrome_notification_types.h"
#include "content/public/browser/notification_service.h"
-FakeSigninManager::FakeSigninManager(Profile* profile) {
+FakeSigninManager::FakeSigninManager(Profile* profile)
+ : auth_in_progress_(false) {
profile_ = profile;
- signin_global_error_.reset(new SigninGlobalError(profile));
+ signin_global_error_.reset(new SigninGlobalError(this, profile));
GlobalErrorServiceFactory::GetForProfile(profile_)->AddGlobalError(
signin_global_error_.get());
}
@@ -52,6 +53,10 @@ void FakeSigninManager::SignOut() {
content::NotificationService::NoDetails());
}
+bool FakeSigninManager::AuthInProgress() const {
+ return auth_in_progress_;
+}
+
// static
ProfileKeyedService* FakeSigninManager::Build(Profile* profile) {
return new FakeSigninManager(profile);
« no previous file with comments | « chrome/browser/signin/signin_manager_fake.h ('k') | chrome/browser/signin/signin_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698