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/callback.h" | 7 #include "base/callback.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 } | 113 } |
114 | 114 |
115 bool FakeLoginUtils::RestartToApplyPerSessionFlagsIfNeed(Profile* profile, | 115 bool FakeLoginUtils::RestartToApplyPerSessionFlagsIfNeed(Profile* profile, |
116 bool early_restart) { | 116 bool early_restart) { |
117 NOTREACHED() << "Method not implemented."; | 117 NOTREACHED() << "Method not implemented."; |
118 return false; | 118 return false; |
119 } | 119 } |
120 | 120 |
121 void FakeLoginUtils::SetExpectedCredentials(const UserContext& user_context) { | 121 void FakeLoginUtils::SetExpectedCredentials(const UserContext& user_context) { |
122 expected_user_context_ = user_context; | 122 expected_user_context_ = user_context; |
123 if (authenticator_) { | 123 if (authenticator_.get()) { |
124 static_cast<MockAuthenticator*>(authenticator_.get())-> | 124 static_cast<MockAuthenticator*>(authenticator_.get())-> |
125 SetExpectedCredentials(user_context); | 125 SetExpectedCredentials(user_context); |
126 } | 126 } |
127 } | 127 } |
128 | 128 |
129 } // namespace chromeos | 129 } // namespace chromeos |
OLD | NEW |