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

Side by Side Diff: chrome/browser/chromeos/login/fake_login_utils.cc

Issue 651843003: [cros-login-refactor] Move CompleteOffTheRecordLogin to UserSessionManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 6 years, 2 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
OLDNEW
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 content::NotificationService::AllSources(), 90 content::NotificationService::AllSources(),
91 content::Details<Profile>(profile)); 91 content::Details<Profile>(profile));
92 if (delegate) 92 if (delegate)
93 delegate->OnProfilePrepared(profile); 93 delegate->OnProfilePrepared(profile);
94 } 94 }
95 95
96 void FakeLoginUtils::DelegateDeleted(LoginUtils::Delegate* delegate) { 96 void FakeLoginUtils::DelegateDeleted(LoginUtils::Delegate* delegate) {
97 NOTREACHED() << "Method not implemented."; 97 NOTREACHED() << "Method not implemented.";
98 } 98 }
99 99
100 void FakeLoginUtils::CompleteOffTheRecordLogin(const GURL& start_url) {
101 NOTREACHED() << "Method not implemented.";
102 }
103
104 scoped_refptr<Authenticator> FakeLoginUtils::CreateAuthenticator( 100 scoped_refptr<Authenticator> FakeLoginUtils::CreateAuthenticator(
105 AuthStatusConsumer* consumer) { 101 AuthStatusConsumer* consumer) {
106 authenticator_ = new MockAuthenticator(consumer, expected_user_context_); 102 authenticator_ = new MockAuthenticator(consumer, expected_user_context_);
107 return authenticator_; 103 return authenticator_;
108 } 104 }
109 105
110 bool FakeLoginUtils::RestartToApplyPerSessionFlagsIfNeed(Profile* profile, 106 bool FakeLoginUtils::RestartToApplyPerSessionFlagsIfNeed(Profile* profile,
111 bool early_restart) { 107 bool early_restart) {
112 NOTREACHED() << "Method not implemented."; 108 NOTREACHED() << "Method not implemented.";
113 return false; 109 return false;
114 } 110 }
115 111
116 void FakeLoginUtils::SetExpectedCredentials(const UserContext& user_context) { 112 void FakeLoginUtils::SetExpectedCredentials(const UserContext& user_context) {
117 expected_user_context_ = user_context; 113 expected_user_context_ = user_context;
118 if (authenticator_.get()) { 114 if (authenticator_.get()) {
119 static_cast<MockAuthenticator*>(authenticator_.get())-> 115 static_cast<MockAuthenticator*>(authenticator_.get())->
120 SetExpectedCredentials(user_context); 116 SetExpectedCredentials(user_context);
121 } 117 }
122 } 118 }
123 119
124 } // namespace chromeos 120 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698