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

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

Issue 105193002: Replace string16 with base::string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/login_utils.h" 5 #include "chrome/browser/chromeos/login/login_utils.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 has_web_auth_cookies_ = has_cookies; 403 has_web_auth_cookies_ = has_cookies;
404 delegate_ = delegate; 404 delegate_ = delegate;
405 InitSessionRestoreStrategy(); 405 InitSessionRestoreStrategy();
406 406
407 // Can't use display_email because it is empty when existing user logs in 407 // Can't use display_email because it is empty when existing user logs in
408 // using sing-in pod on login screen (i.e. user didn't type email). 408 // using sing-in pod on login screen (i.e. user didn't type email).
409 g_browser_process->profile_manager()->CreateProfileAsync( 409 g_browser_process->profile_manager()->CreateProfileAsync(
410 user_manager->GetUserProfileDir(user_context.username), 410 user_manager->GetUserProfileDir(user_context.username),
411 base::Bind(&LoginUtilsImpl::OnProfileCreated, AsWeakPtr(), 411 base::Bind(&LoginUtilsImpl::OnProfileCreated, AsWeakPtr(),
412 user_context.username), 412 user_context.username),
413 string16(), string16(), std::string()); 413 base::string16(), base::string16(), std::string());
414 } 414 }
415 415
416 void LoginUtilsImpl::DelegateDeleted(LoginUtils::Delegate* delegate) { 416 void LoginUtilsImpl::DelegateDeleted(LoginUtils::Delegate* delegate) {
417 if (delegate_ == delegate) 417 if (delegate_ == delegate)
418 delegate_ = NULL; 418 delegate_ = NULL;
419 } 419 }
420 420
421 void LoginUtilsImpl::InitProfilePreferences(Profile* user_profile, 421 void LoginUtilsImpl::InitProfilePreferences(Profile* user_profile,
422 const std::string& user_id) { 422 const std::string& user_id) {
423 if (UserManager::Get()->IsCurrentUserNew()) 423 if (UserManager::Get()->IsCurrentUserNew())
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 bool LoginUtils::IsWhitelisted(const std::string& username) { 900 bool LoginUtils::IsWhitelisted(const std::string& username) {
901 CrosSettings* cros_settings = CrosSettings::Get(); 901 CrosSettings* cros_settings = CrosSettings::Get();
902 bool allow_new_user = false; 902 bool allow_new_user = false;
903 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user); 903 cros_settings->GetBoolean(kAccountsPrefAllowNewUser, &allow_new_user);
904 if (allow_new_user) 904 if (allow_new_user)
905 return true; 905 return true;
906 return cros_settings->FindEmailInList(kAccountsPrefUsers, username); 906 return cros_settings->FindEmailInList(kAccountsPrefUsers, username);
907 } 907 }
908 908
909 } // namespace chromeos 909 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_display.h ('k') | chrome/browser/chromeos/login/login_utils_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698