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

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

Issue 322533002: Restart Chrome on ChromeOS as early as possible to speed up restart. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win build. Created 6 years, 6 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/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
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 return false;
109 }
110
105 void FakeLoginUtils::SetExpectedCredentials(const UserContext& user_context) { 111 void FakeLoginUtils::SetExpectedCredentials(const UserContext& user_context) {
106 expected_user_context_ = user_context; 112 expected_user_context_ = user_context;
107 if (authenticator_) { 113 if (authenticator_) {
108 static_cast<MockAuthenticator*>(authenticator_.get())-> 114 static_cast<MockAuthenticator*>(authenticator_.get())->
109 SetExpectedCredentials(user_context); 115 SetExpectedCredentials(user_context);
110 } 116 }
111 } 117 }
112 118
113 } // namespace chromeos 119 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698