Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #include "chrome/browser/signin/fake_auth_status_provider.h" | |
| 6 | |
| 7 FakeAuthStatusProvider::FakeAuthStatusProvider(SigninGlobalError* error) | |
| 8 : global_error_(error), | |
| 9 auth_error_(GoogleServiceAuthError::None()) { | |
| 10 global_error_->AddProvider(this); | |
| 11 } | |
| 12 | |
| 13 FakeAuthStatusProvider::~FakeAuthStatusProvider() { | |
| 14 global_error_->RemoveProvider(this); | |
| 15 } | |
| 16 | |
| 17 GoogleServiceAuthError FakeAuthStatusProvider::GetAuthStatus() const { | |
| 18 return auth_error_; | |
| 19 } | |
| 20 | |
| 21 void FakeAuthStatusProvider::set_auth_error( | |
|
Roger Tawa OOO till Jul 10th
2013/01/30 16:46:46
SetAuthError naming?
Andrew T Wilson (Slow)
2013/01/31 10:38:05
Done.
| |
| 22 const GoogleServiceAuthError& error) { | |
| 23 auth_error_ = error; | |
| 24 global_error_->AuthStatusChanged(); | |
| 25 } | |
| OLD | NEW |