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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller.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/existing_user_controller.h" 5 #include "chrome/browser/chromeos/login/existing_user_controller.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 ShowEnrollmentScreen(true, user_context.username); 357 ShowEnrollmentScreen(true, user_context.username);
358 // Enable UI for the enrollment screen. SetUIEnabled(true) will post a 358 // Enable UI for the enrollment screen. SetUIEnabled(true) will post a
359 // request to show the sign-in screen again when invoked at the sign-in 359 // request to show the sign-in screen again when invoked at the sign-in
360 // screen; invoke SetUIEnabled() after navigating to the enrollment screen. 360 // screen; invoke SetUIEnabled() after navigating to the enrollment screen.
361 login_display_->SetUIEnabled(true); 361 login_display_->SetUIEnabled(true);
362 } else { 362 } else {
363 PerformLogin(user_context, LoginPerformer::AUTH_MODE_EXTENSION); 363 PerformLogin(user_context, LoginPerformer::AUTH_MODE_EXTENSION);
364 } 364 }
365 } 365 }
366 366
367 string16 ExistingUserController::GetConnectedNetworkName() { 367 base::string16 ExistingUserController::GetConnectedNetworkName() {
368 return network_state_helper_->GetCurrentNetworkName(); 368 return network_state_helper_->GetCurrentNetworkName();
369 } 369 }
370 370
371 bool ExistingUserController::IsSigninInProgress() const { 371 bool ExistingUserController::IsSigninInProgress() const {
372 return is_login_in_progress_; 372 return is_login_in_progress_;
373 } 373 }
374 374
375 void ExistingUserController::Login(const UserContext& user_context) { 375 void ExistingUserController::Login(const UserContext& user_context) {
376 if ((user_context.username.empty() || user_context.password.empty()) && 376 if ((user_context.username.empty() || user_context.password.empty()) &&
377 user_context.auth_code.empty()) 377 user_context.auth_code.empty())
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 } 1105 }
1106 1106
1107 void ExistingUserController::SendAccessibilityAlert( 1107 void ExistingUserController::SendAccessibilityAlert(
1108 const std::string& alert_text) { 1108 const std::string& alert_text) {
1109 AccessibilityAlertInfo event(ProfileHelper::GetSigninProfile(), alert_text); 1109 AccessibilityAlertInfo event(ProfileHelper::GetSigninProfile(), alert_text);
1110 SendControlAccessibilityNotification( 1110 SendControlAccessibilityNotification(
1111 ui::AccessibilityTypes::EVENT_VALUE_CHANGED, &event); 1111 ui::AccessibilityTypes::EVENT_VALUE_CHANGED, &event);
1112 } 1112 }
1113 1113
1114 } // namespace chromeos 1114 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller.h ('k') | chrome/browser/chromeos/login/fake_supervised_user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698