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

Unified Diff: chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc

Issue 419293002: IME refactoring: ChromeOS introduce input methods State. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test fixed. Re-sorted methods of StateImpl and IMM. Created 6 years, 4 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/accessibility/accessibility_manager_browsertest.cc
diff --git a/chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc b/chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc
index b81ecee51a7c134e624a21ec3133f09af4a4e2e4..c29e685fee8cfb15b6a9593df91d02f7ea14e557 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc
+++ b/chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/chromeos/accessibility/magnification_manager.h"
#include "chrome/browser/chromeos/login/helper.h"
#include "chrome/browser/chromeos/login/login_utils.h"
+#include "chrome/browser/chromeos/login/session/user_session_manager.h"
#include "chrome/browser/chromeos/preferences.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/extensions/api/braille_display_private/mock_braille_controller.h"
@@ -203,7 +204,7 @@ int GetAutoclickDelayFromPref() {
bool IsBrailleImeActive() {
InputMethodManager* imm = InputMethodManager::Get();
scoped_ptr<InputMethodDescriptors> descriptors =
- imm->GetActiveInputMethods();
+ imm->GetActiveIMEState()->GetActiveInputMethods();
for (InputMethodDescriptors::const_iterator i = descriptors->begin();
i != descriptors->end();
++i) {
@@ -215,7 +216,7 @@ bool IsBrailleImeActive() {
bool IsBrailleImeCurrent() {
InputMethodManager* imm = InputMethodManager::Get();
- return imm->GetCurrentInputMethod().id() ==
+ return imm->GetActiveIMEState()->GetCurrentInputMethod().id() ==
extension_misc::kBrailleImeEngineId;
}
} // anonymous namespace
@@ -629,7 +630,8 @@ IN_PROC_BROWSER_TEST_P(AccessibilityManagerUserTypeTest, BrailleWhenLoggedIn) {
chromeos::Preferences prefs;
prefs.InitUserPrefsForTesting(
PrefServiceSyncable::FromProfile(GetProfile()),
- user_manager::UserManager::Get()->GetActiveUser());
+ user_manager::UserManager::Get()->GetActiveUser(),
+ UserSessionManager::GetInstance()->GetDefaultIMEState(GetProfile()));
// Make sure we start in the expected state.
EXPECT_FALSE(IsBrailleImeActive());
« no previous file with comments | « chrome/browser/chromeos/accessibility/accessibility_manager.cc ('k') | chrome/browser/chromeos/base/locale_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698