OLD | NEW |
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 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1130 start_urls.push_back(url); | 1130 start_urls.push_back(url); |
1131 } | 1131 } |
1132 } | 1132 } |
1133 can_show_getstarted_guide = false; | 1133 can_show_getstarted_guide = false; |
1134 // Skip the default first-run behavior for public accounts. | 1134 // Skip the default first-run behavior for public accounts. |
1135 } else if (!user_manager->IsLoggedInAsPublicAccount()) { | 1135 } else if (!user_manager->IsLoggedInAsPublicAccount()) { |
1136 if (AccessibilityManager::Get()->IsSpokenFeedbackEnabled()) { | 1136 if (AccessibilityManager::Get()->IsSpokenFeedbackEnabled()) { |
1137 const char* url = kChromeVoxTutorialURLPattern; | 1137 const char* url = kChromeVoxTutorialURLPattern; |
1138 PrefService* prefs = g_browser_process->local_state(); | 1138 PrefService* prefs = g_browser_process->local_state(); |
1139 const std::string current_locale = | 1139 const std::string current_locale = |
1140 StringToLowerASCII(prefs->GetString(prefs::kApplicationLocale)); | 1140 base::StringToLowerASCII(prefs->GetString(prefs::kApplicationLocale)); |
1141 std::string vox_url = base::StringPrintf(url, current_locale.c_str()); | 1141 std::string vox_url = base::StringPrintf(url, current_locale.c_str()); |
1142 start_urls.push_back(vox_url); | 1142 start_urls.push_back(vox_url); |
1143 can_show_getstarted_guide = false; | 1143 can_show_getstarted_guide = false; |
1144 } | 1144 } |
1145 } | 1145 } |
1146 | 1146 |
1147 // Only show getting started guide for a new user. | 1147 // Only show getting started guide for a new user. |
1148 const bool should_show_getstarted_guide = user_manager->IsCurrentUserNew(); | 1148 const bool should_show_getstarted_guide = user_manager->IsCurrentUserNew(); |
1149 | 1149 |
1150 if (can_show_getstarted_guide && should_show_getstarted_guide) { | 1150 if (can_show_getstarted_guide && should_show_getstarted_guide) { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1242 // Only one instance of LoginPerformer should exist at a time. | 1242 // Only one instance of LoginPerformer should exist at a time. |
1243 login_performer_.reset(NULL); | 1243 login_performer_.reset(NULL); |
1244 login_performer_.reset(new LoginPerformer(this)); | 1244 login_performer_.reset(new LoginPerformer(this)); |
1245 is_login_in_progress_ = true; | 1245 is_login_in_progress_ = true; |
1246 login_performer_->LoginAsPublicSession(user_context); | 1246 login_performer_->LoginAsPublicSession(user_context); |
1247 SendAccessibilityAlert( | 1247 SendAccessibilityAlert( |
1248 l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_LOGIN_SIGNIN_PUBLIC_ACCOUNT)); | 1248 l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_LOGIN_SIGNIN_PUBLIC_ACCOUNT)); |
1249 } | 1249 } |
1250 | 1250 |
1251 } // namespace chromeos | 1251 } // namespace chromeos |
OLD | NEW |