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

Unified Diff: chromeos/ime/extension_ime_util.cc

Issue 12583012: Introduce IsMemberOfExtension function into ExtensionIMEUtil. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/extension_ime_util.h ('k') | chromeos/ime/extension_ime_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/extension_ime_util.cc
diff --git a/chromeos/ime/extension_ime_util.cc b/chromeos/ime/extension_ime_util.cc
index 543d4d54ae0999de56cbd18c9e166c210a196d85..70eed3fe1ccac398e3e85f2790b783223e387487 100644
--- a/chromeos/ime/extension_ime_util.cc
+++ b/chromeos/ime/extension_ime_util.cc
@@ -25,5 +25,12 @@ bool IsExtensionIME(const std::string& input_method_id) {
false); // Case insensitive.
}
+bool IsMemberOfExtension(const std::string& input_method_id,
+ const std::string& extension_id) {
+ return StartsWithASCII(input_method_id,
+ kExtensionIMEPrefix + extension_id,
+ false); // Case insensitive.
Zachary Kuznia 2013/03/26 09:17:29 Why is this case insensitive?
Seigo Nonaka 2013/03/26 09:26:37 For meeting as above implementation. But case sens
+}
+
} // namespace extension_ime_util
} // namespace chromeos
« no previous file with comments | « chromeos/ime/extension_ime_util.h ('k') | chromeos/ime/extension_ime_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698