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

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

Issue 12686006: Rename GoogleServiceAuthError::None() to AuthErrorNone() and LoginFailure::None() to LoginFailureNo… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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) 2013 The Chromium Authors. All rights reserved. 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 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/fake_auth_status_provider.h" 5 #include "chrome/browser/signin/fake_auth_status_provider.h"
6 6
7 FakeAuthStatusProvider::FakeAuthStatusProvider(SigninGlobalError* error) 7 FakeAuthStatusProvider::FakeAuthStatusProvider(SigninGlobalError* error)
8 : global_error_(error), 8 : global_error_(error),
9 auth_error_(GoogleServiceAuthError::None()) { 9 auth_error_(GoogleServiceAuthError::AuthErrorNone()) {
10 global_error_->AddProvider(this); 10 global_error_->AddProvider(this);
11 } 11 }
12 12
13 FakeAuthStatusProvider::~FakeAuthStatusProvider() { 13 FakeAuthStatusProvider::~FakeAuthStatusProvider() {
14 global_error_->RemoveProvider(this); 14 global_error_->RemoveProvider(this);
15 } 15 }
16 16
17 GoogleServiceAuthError FakeAuthStatusProvider::GetAuthStatus() const { 17 GoogleServiceAuthError FakeAuthStatusProvider::GetAuthStatus() const {
18 return auth_error_; 18 return auth_error_;
19 } 19 }
20 20
21 void FakeAuthStatusProvider::SetAuthError(const GoogleServiceAuthError& error) { 21 void FakeAuthStatusProvider::SetAuthError(const GoogleServiceAuthError& error) {
22 auth_error_ = error; 22 auth_error_ = error;
23 global_error_->AuthStatusChanged(); 23 global_error_->AuthStatusChanged();
24 } 24 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc ('k') | chrome/browser/signin/oauth2_token_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698