| Index: chrome/browser/chromeos/policy/device_local_account_browsertest.cc
|
| diff --git a/chrome/browser/chromeos/policy/device_local_account_browsertest.cc b/chrome/browser/chromeos/policy/device_local_account_browsertest.cc
|
| index 06ea719bcd524761446880732523f033bd6136c2..0126d545ad08fd1d64bdf3a58dd9a0dbbbad0ead 100644
|
| --- a/chrome/browser/chromeos/policy/device_local_account_browsertest.cc
|
| +++ b/chrome/browser/chromeos/policy/device_local_account_browsertest.cc
|
| @@ -690,7 +690,9 @@ class DeviceLocalAccountTest : public DevicePolicyCrosBrowserTest,
|
| &layouts_from_locale);
|
| ASSERT_FALSE(layouts_from_locale.empty());
|
| EXPECT_EQ(layouts_from_locale.front(),
|
| - input_method_manager->GetCurrentInputMethod().id());
|
| + input_method_manager->GetActiveIMEState()
|
| + ->GetCurrentInputMethod()
|
| + .id());
|
| }
|
|
|
| const std::string user_id_1_;
|
| @@ -1497,8 +1499,10 @@ IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, NoRecommendedLocaleSwitch) {
|
| // Verify that the locale and keyboard layout have been applied.
|
| EXPECT_EQ(kPublicSessionLocale, g_browser_process->GetApplicationLocale());
|
| EXPECT_EQ(public_session_input_method_id_,
|
| - chromeos::input_method::InputMethodManager::Get()->
|
| - GetCurrentInputMethod().id());
|
| + chromeos::input_method::InputMethodManager::Get()
|
| + ->GetActiveIMEState()
|
| + ->GetCurrentInputMethod()
|
| + .id());
|
| }
|
|
|
| IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, OneRecommendedLocale) {
|
| @@ -1746,8 +1750,10 @@ IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, MultipleRecommendedLocales) {
|
| // Verify that the locale and keyboard layout have been applied.
|
| EXPECT_EQ(kPublicSessionLocale, g_browser_process->GetApplicationLocale());
|
| EXPECT_EQ(public_session_input_method_id_,
|
| - chromeos::input_method::InputMethodManager::Get()->
|
| - GetCurrentInputMethod().id());
|
| + chromeos::input_method::InputMethodManager::Get()
|
| + ->GetActiveIMEState()
|
| + ->GetCurrentInputMethod()
|
| + .id());
|
| }
|
|
|
| IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest,
|
| @@ -1871,8 +1877,10 @@ IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, TermsOfServiceWithLocaleSwitch) {
|
| // Verify that the locale and keyboard layout have been applied.
|
| EXPECT_EQ(kPublicSessionLocale, g_browser_process->GetApplicationLocale());
|
| EXPECT_EQ(public_session_input_method_id_,
|
| - chromeos::input_method::InputMethodManager::Get()->
|
| - GetCurrentInputMethod().id());
|
| + chromeos::input_method::InputMethodManager::Get()
|
| + ->GetActiveIMEState()
|
| + ->GetCurrentInputMethod()
|
| + .id());
|
|
|
| // Click the accept button.
|
| ASSERT_TRUE(content::ExecuteScript(contents_,
|
| @@ -1883,8 +1891,10 @@ IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, TermsOfServiceWithLocaleSwitch) {
|
| // Verify that the locale and keyboard layout are still in force.
|
| EXPECT_EQ(kPublicSessionLocale, g_browser_process->GetApplicationLocale());
|
| EXPECT_EQ(public_session_input_method_id_,
|
| - chromeos::input_method::InputMethodManager::Get()->
|
| - GetCurrentInputMethod().id());
|
| + chromeos::input_method::InputMethodManager::Get()
|
| + ->GetActiveIMEState()
|
| + ->GetCurrentInputMethod()
|
| + .id());
|
| }
|
|
|
| class TermsOfServiceDownloadTest : public DeviceLocalAccountTest,
|
|
|