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

Unified Diff: chromeos/ime/input_method_descriptor.cc

Issue 13954012: Move GetFallbackInputMethodDescriptor function to InputMethodUtil. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « chromeos/ime/input_method_descriptor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/input_method_descriptor.cc
diff --git a/chromeos/ime/input_method_descriptor.cc b/chromeos/ime/input_method_descriptor.cc
index 3ed8da34864280d0e56244d5709232f2844f9b5c..408852c743dc78a8cfa9ea65d8376ce686c66481 100644
--- a/chromeos/ime/input_method_descriptor.cc
+++ b/chromeos/ime/input_method_descriptor.cc
@@ -12,10 +12,6 @@
namespace chromeos {
namespace input_method {
-namespace {
-const char kFallbackLayout[] = "us";
-} // namespace
-
InputMethodDescriptor::InputMethodDescriptor(
const std::string& id,
const std::string& name,
@@ -47,27 +43,5 @@ bool InputMethodDescriptor::operator!=(
return !(*this == other);
}
-// static
-InputMethodDescriptor
-InputMethodDescriptor::GetFallbackInputMethodDescriptor() {
- return InputMethodDescriptor("xkb:us::eng",
- "",
- kFallbackLayout,
- "en-US",
- "", // options page, not available.
- false);
-}
-
-std::string InputMethodDescriptor::ToString() const {
- std::stringstream stream;
- stream << "id=" << id()
- << ", name=" << name()
- << ", keyboard_layout=" << keyboard_layout()
- << ", language_code=" << language_code()
- << ", options_page_url=" << options_page_url()
- << ", third_party=" << third_party();
- return stream.str();
-}
-
} // namespace input_method
} // namespace chromeos
« no previous file with comments | « chromeos/ime/input_method_descriptor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698