Revert r196089 "Add default values for Latin script font prefs."
[chromium-blink-merge.git] / chrome / browser / signin / fake_auth_status_provider.cc
blob439231ff15bba5bbd94b95a2347fba2ad5d87e12
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/signin/fake_auth_status_provider.h"
7 FakeAuthStatusProvider::FakeAuthStatusProvider(SigninGlobalError* error)
8 : global_error_(error),
9 auth_error_(GoogleServiceAuthError::AuthErrorNone()) {
10 global_error_->AddProvider(this);
13 FakeAuthStatusProvider::~FakeAuthStatusProvider() {
14 global_error_->RemoveProvider(this);
17 GoogleServiceAuthError FakeAuthStatusProvider::GetAuthStatus() const {
18 return auth_error_;
21 void FakeAuthStatusProvider::SetAuthError(const GoogleServiceAuthError& error) {
22 auth_error_ = error;
23 global_error_->AuthStatusChanged();