| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/chromeos/login/fake_login_utils.h" | 5 #include "chrome/browser/chromeos/login/fake_login_utils.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
| 10 #include "chrome/browser/chromeos/login/auth/mock_authenticator.h" | 10 #include "chrome/browser/chromeos/login/auth/mock_authenticator.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 void FakeLoginUtils::CompleteOffTheRecordLogin(const GURL& start_url) { | 95 void FakeLoginUtils::CompleteOffTheRecordLogin(const GURL& start_url) { |
| 96 NOTREACHED() << "Method not implemented."; | 96 NOTREACHED() << "Method not implemented."; |
| 97 } | 97 } |
| 98 | 98 |
| 99 scoped_refptr<Authenticator> FakeLoginUtils::CreateAuthenticator( | 99 scoped_refptr<Authenticator> FakeLoginUtils::CreateAuthenticator( |
| 100 LoginStatusConsumer* consumer) { | 100 LoginStatusConsumer* consumer) { |
| 101 authenticator_ = new MockAuthenticator(consumer, expected_user_context_); | 101 authenticator_ = new MockAuthenticator(consumer, expected_user_context_); |
| 102 return authenticator_; | 102 return authenticator_; |
| 103 } | 103 } |
| 104 | 104 |
| 105 bool FakeLoginUtils::RestartToApplyPerSessionFlagsIfNeed(Profile* profile, |
| 106 bool early_restart) { |
| 107 NOTREACHED() << "Method not implemented."; |
| 108 } |
| 109 |
| 105 void FakeLoginUtils::SetExpectedCredentials(const UserContext& user_context) { | 110 void FakeLoginUtils::SetExpectedCredentials(const UserContext& user_context) { |
| 106 expected_user_context_ = user_context; | 111 expected_user_context_ = user_context; |
| 107 if (authenticator_) { | 112 if (authenticator_) { |
| 108 static_cast<MockAuthenticator*>(authenticator_.get())-> | 113 static_cast<MockAuthenticator*>(authenticator_.get())-> |
| 109 SetExpectedCredentials(user_context); | 114 SetExpectedCredentials(user_context); |
| 110 } | 115 } |
| 111 } | 116 } |
| 112 | 117 |
| 113 } // namespace chromeos | 118 } // namespace chromeos |
| OLD | NEW |