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

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

Issue 8773046: [cros] Display emails of users are stored in a separate dictionary in Local State. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/mock_authenticator.h" 5 #include "chrome/browser/chromeos/login/mock_authenticator.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 9
10 using content::BrowserThread; 10 using content::BrowserThread;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 MockLoginUtils::MockLoginUtils(const std::string& expected_username, 68 MockLoginUtils::MockLoginUtils(const std::string& expected_username,
69 const std::string& expected_password) 69 const std::string& expected_password)
70 : expected_username_(expected_username), 70 : expected_username_(expected_username),
71 expected_password_(expected_password) { 71 expected_password_(expected_password) {
72 } 72 }
73 73
74 MockLoginUtils::~MockLoginUtils() {} 74 MockLoginUtils::~MockLoginUtils() {}
75 75
76 void MockLoginUtils::PrepareProfile( 76 void MockLoginUtils::PrepareProfile(
77 const std::string& username, 77 const std::string& username,
78 const std::string& display_email,
78 const std::string& password, 79 const std::string& password,
79 const GaiaAuthConsumer::ClientLoginResult& res, 80 const GaiaAuthConsumer::ClientLoginResult& res,
80 bool pending_requests, 81 bool pending_requests,
81 bool using_oauth, 82 bool using_oauth,
82 bool has_cookies, 83 bool has_cookies,
83 Delegate* delegate) { 84 Delegate* delegate) {
84 DCHECK_EQ(expected_username_, username); 85 DCHECK_EQ(expected_username_, username);
85 DCHECK_EQ(expected_password_, password); 86 DCHECK_EQ(expected_password_, password);
86 // Profile hasn't been loaded. 87 // Profile hasn't been loaded.
87 delegate->OnProfilePrepared(NULL); 88 delegate->OnProfilePrepared(NULL);
(...skipping 25 matching lines...) Expand all
113 114
114 void MockLoginUtils::TransferDefaultCookies(Profile* default_profile, 115 void MockLoginUtils::TransferDefaultCookies(Profile* default_profile,
115 Profile* new_profile) { 116 Profile* new_profile) {
116 } 117 }
117 118
118 void MockLoginUtils::TransferDefaultAuthCache(Profile* default_profile, 119 void MockLoginUtils::TransferDefaultAuthCache(Profile* default_profile,
119 Profile* new_profile) { 120 Profile* new_profile) {
120 } 121 }
121 122
122 } // namespace chromeos 123 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/mock_authenticator.h ('k') | chrome/browser/chromeos/login/remove_user_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698