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

Unified Diff: chrome/browser/chromeos/login/existing_user_controller.cc

Issue 14200048: Introduce AcccessibilityManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/existing_user_controller.cc
diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc
index b90a90906383270a88bf5692fb8a8f68e4bef59b..5976cf56560d3964f017dd0e87c62e828711f3d3 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller.cc
@@ -21,7 +21,7 @@
#include "base/values.h"
#include "base/version.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/browser/chromeos/accessibility/accessibility_util.h"
+#include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
#include "chrome/browser/chromeos/boot_times_loader.h"
#include "chrome/browser/chromeos/cros/cros_library.h"
#include "chrome/browser/chromeos/customization_document.h"
@@ -446,7 +446,7 @@ void ExistingUserController::PerformLogin(
} else {
login_performer_->PerformLogin(user_context, auth_mode);
}
- accessibility::MaybeSpeak(
+ AccessibilityManager::Get()->MaybeSpeak(
l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_LOGIN_SIGNING_IN));
}
@@ -464,7 +464,7 @@ void ExistingUserController::LoginAsRetailModeUser() {
login_performer_.reset(new LoginPerformer(this));
is_login_in_progress_ = true;
login_performer_->LoginRetailMode();
- accessibility::MaybeSpeak(
+ AccessibilityManager::Get()->MaybeSpeak(
l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_LOGIN_SIGNIN_DEMOUSER));
}
@@ -517,7 +517,7 @@ void ExistingUserController::LoginAsGuest() {
login_performer_.reset(new LoginPerformer(this));
is_login_in_progress_ = true;
login_performer_->LoginOffTheRecord();
- accessibility::MaybeSpeak(
+ AccessibilityManager::Get()->MaybeSpeak(
l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_LOGIN_SIGNIN_OFFRECORD));
}
@@ -573,7 +573,7 @@ void ExistingUserController::LoginAsPublicAccount(
login_performer_.reset(new LoginPerformer(this));
is_login_in_progress_ = true;
login_performer_->LoginAsPublicAccount(username);
- accessibility::MaybeSpeak(
+ AccessibilityManager::Get()->MaybeSpeak(
l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_LOGIN_SIGNIN_PUBLIC_ACCOUNT));
}
@@ -996,7 +996,6 @@ gfx::NativeWindow ExistingUserController::GetNativeWindow() const {
void ExistingUserController::InitializeStartUrls() const {
std::vector<std::string> start_urls;
- PrefService* prefs = g_browser_process->local_state();
const base::ListValue *urls;
if (UserManager::Get()->IsLoggedInAsDemoUser()) {
if (CrosSettings::Get()->GetList(kStartUpUrls, &urls)) {
@@ -1011,8 +1010,9 @@ void ExistingUserController::InitializeStartUrls() const {
}
// Skip the default first-run behavior for public accounts.
} else if (!UserManager::Get()->IsLoggedInAsPublicAccount()) {
- if (prefs->GetBoolean(prefs::kSpokenFeedbackEnabled)) {
+ if (AccessibilityManager::Get()->IsSpokenFeedbackEnabled()) {
const char* url = kChromeVoxTutorialURLPattern;
+ PrefService* prefs = g_browser_process->local_state();
const std::string current_locale =
StringToLowerASCII(prefs->GetString(prefs::kApplicationLocale));
std::string vox_url = base::StringPrintf(url, current_locale.c_str());
« no previous file with comments | « chrome/browser/chromeos/chrome_browser_main_chromeos.cc ('k') | chrome/browser/chromeos/login/screens/user_image_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698