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

Issue 133273032: Guest Mode: input method should default to the underlying latin keyboard layout. (Closed)

Created:
6 years, 11 months ago by Alexander Alekseev
Modified:
6 years, 10 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, nkostylev+watch_chromium.org, Seigo Nonaka
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Guest Mode: input method should default to the underlying latin keyboard layout. Currently Guest mode always uses default value of Preferences.PreferredInputMethod = "" (empty string) that always leads to "us" keyboard layout (compiled-in default). Guest sessions should have the following input methods/keyboards readily available: - the VPD value (assuming the latin keyboard representing the underlying hardware; should be the default; e.g. French chromebook => azerty) - the additional input method/keyboard based on the locale (e.g. Japanese locale => should also add the Japanese IME; there are existing rules for this) BUG=329018 TEST=unittest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247938

Patch Set 1 #

Patch Set 2 : Re-upload missing CL. #

Total comments: 10

Patch Set 3 : Removed owner's layouts from Guest mode. #

Total comments: 2

Patch Set 4 : Added comment to new IsLoginKeyboard() method. #

Patch Set 5 : Removed bool login_layouts_only option from EnableLayouts(); EnableLayouts => EnableLoginLayouts. #

Total comments: 6

Patch Set 6 : Revert InputMethodManager singleton initialization. #

Patch Set 7 : Style. #

Total comments: 13

Patch Set 8 : Rebase. Use EnableInputMethod instead of EnableInputMethods. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -66 lines) Patch
M chrome/browser/chromeos/base/locale_util.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/base/locale_util.cc View 1 2 3 4 5 6 7 4 chunks +26 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 3 chunks +56 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl.cc View 1 2 3 4 5 6 7 4 chunks +15 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc View 1 2 3 4 5 6 7 7 chunks +18 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_util.h View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_util.cc View 1 2 3 4 5 6 2 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/mock_input_method_manager.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/input_method/mock_input_method_manager.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/input_method/mode_indicator_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/login_display_host_impl.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 4 5 6 7 1 chunk +15 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/network_screen_handler.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chromeos/ime/input_method_manager.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -10 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Alexander Alekseev
Please review.
6 years, 11 months ago (2014-01-17 21:05:40 UTC) #1
Alexander Alekseev
Please review: komatsu@ : input_method/* nkostylev@ : all the other files.
6 years, 11 months ago (2014-01-20 13:43:30 UTC) #2
Hiro Komatsu
I am afraid to use the owner's IME settings to guest users. It makes complexity. ...
6 years, 11 months ago (2014-01-21 05:46:00 UTC) #3
kenjibaheux
> I am afraid to use the owner's IME settings to guest users. It makes ...
6 years, 11 months ago (2014-01-21 06:00:54 UTC) #4
Alexander Alekseev
https://codereview.chromium.org/133273032/diff/190001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/133273032/diff/190001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode572 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:572: input_method::InputMethodManager* const ime = On 2014/01/21 05:46:01, Hiro Komatsu ...
6 years, 11 months ago (2014-01-21 14:05:26 UTC) #5
Hiro Komatsu
https://codereview.chromium.org/133273032/diff/190001/chromeos/ime/input_method_manager.h File chromeos/ime/input_method_manager.h (right): https://codereview.chromium.org/133273032/diff/190001/chromeos/ime/input_method_manager.h#newcode121 chromeos/ime/input_method_manager.h:121: virtual void EnableLayouts(const std::string& language_code, On 2014/01/21 14:05:27, alemate ...
6 years, 11 months ago (2014-01-22 10:01:55 UTC) #6
Alexander Alekseev
https://codereview.chromium.org/133273032/diff/190001/chromeos/ime/input_method_manager.h File chromeos/ime/input_method_manager.h (right): https://codereview.chromium.org/133273032/diff/190001/chromeos/ime/input_method_manager.h#newcode121 chromeos/ime/input_method_manager.h:121: virtual void EnableLayouts(const std::string& language_code, On 2014/01/22 10:01:55, Hiro ...
6 years, 11 months ago (2014-01-22 11:35:05 UTC) #7
Hiro Komatsu
https://codereview.chromium.org/133273032/diff/190001/chromeos/ime/input_method_manager.h File chromeos/ime/input_method_manager.h (right): https://codereview.chromium.org/133273032/diff/190001/chromeos/ime/input_method_manager.h#newcode121 chromeos/ime/input_method_manager.h:121: virtual void EnableLayouts(const std::string& language_code, On 2014/01/22 11:35:05, alemate ...
6 years, 11 months ago (2014-01-24 08:24:44 UTC) #8
Alexander Alekseev
Please review. https://codereview.chromium.org/133273032/diff/190001/chromeos/ime/input_method_manager.h File chromeos/ime/input_method_manager.h (right): https://codereview.chromium.org/133273032/diff/190001/chromeos/ime/input_method_manager.h#newcode121 chromeos/ime/input_method_manager.h:121: virtual void EnableLayouts(const std::string& language_code, On 2014/01/24 ...
6 years, 11 months ago (2014-01-24 13:29:44 UTC) #9
Hiro Komatsu
Thanks for the quick update and renaming. https://codereview.chromium.org/133273032/diff/400001/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc File chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc (right): https://codereview.chromium.org/133273032/diff/400001/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc#newcode151 chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc:151: InputMethodManagerImpl* manager() ...
6 years, 11 months ago (2014-01-27 05:12:20 UTC) #10
Alexander Alekseev
https://codereview.chromium.org/133273032/diff/400001/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc File chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc (right): https://codereview.chromium.org/133273032/diff/400001/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc#newcode151 chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc:151: InputMethodManagerImpl* manager() const { On 2014/01/27 05:12:21, Hiro Komatsu ...
6 years, 11 months ago (2014-01-27 12:50:14 UTC) #11
Nikita (slow)
lgtm with nits https://codereview.chromium.org/133273032/diff/630001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/133273032/diff/630001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode557 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:557: // must match SwitchLanguageCallback type. nit: ...
6 years, 10 months ago (2014-01-27 19:31:21 UTC) #12
Hiro Komatsu
lgtm https://codereview.chromium.org/133273032/diff/630001/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc File chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc (right): https://codereview.chromium.org/133273032/diff/630001/chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc#newcode321 chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc:321: EXPECT_EQ(manager_->GetActiveInputMethodIds().front(), "xkb:us::eng"); EXPECT_EQ(expected, actual);
6 years, 10 months ago (2014-01-28 06:21:23 UTC) #13
Alexander Alekseev
OK. I'll ship this. https://codereview.chromium.org/133273032/diff/630001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/133273032/diff/630001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode557 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:557: // must match SwitchLanguageCallback type. ...
6 years, 10 months ago (2014-01-29 13:36:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alemate@chromium.org/133273032/660001
6 years, 10 months ago (2014-01-29 13:37:40 UTC) #15
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=43072
6 years, 10 months ago (2014-01-30 01:27:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alemate@chromium.org/133273032/660001
6 years, 10 months ago (2014-01-30 12:32:24 UTC) #17
commit-bot: I haz the power
6 years, 10 months ago (2014-01-30 13:29:11 UTC) #18
Message was sent while issue was closed.
Change committed as 247938

Powered by Google App Engine
This is Rietveld 408576698