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

Unified Diff: chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc

Issue 139803010: Support comma separated hardware keyboard layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments Created 6 years, 10 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/extensions/input_method_apitest_chromeos.cc
diff --git a/chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc b/chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc
index ac7c9c77f53bc654cf1bd8987d7da35874957cb5..aa8506ca9a0853d659eac4353513527fc1e28ec7 100644
--- a/chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc
+++ b/chrome/browser/chromeos/extensions/input_method_apitest_chromeos.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/extensions/extension_apitest.h"
+#include <vector>
+
#include "base/command_line.h"
#include "base/memory/ref_counted.h"
#include "base/strings/stringprintf.h"
@@ -33,8 +35,10 @@ class SetInputMethodListener : public content::NotificationObserver {
explicit SetInputMethodListener(int count) : count_(count) {
registrar_.Add(this, chrome::NOTIFICATION_EXTENSION_TEST_MESSAGE,
content::NotificationService::AllSources());
+ std::vector<std::string> keyboard_layouts;
+ keyboard_layouts.push_back(kInitialInputMethodOnLoginScreen);
chromeos::input_method::InputMethodManager::Get()->EnableLoginLayouts(
- kLoginScreenUILanguage, kInitialInputMethodOnLoginScreen);
+ kLoginScreenUILanguage, keyboard_layouts);
}
virtual ~SetInputMethodListener() {

Powered by Google App Engine
This is Rietveld 408576698