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

Unified Diff: chrome/common/extensions/extension_constants.cc

Issue 1611463002: Remove the close button in context menu for IME menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync up to date. Created 4 years, 11 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 | « chrome/common/extensions/extension_constants.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_constants.cc
diff --git a/chrome/common/extensions/extension_constants.cc b/chrome/common/extensions/extension_constants.cc
index 5a722655a414415238c9591e7dda36acb3119845..81bc30f43ec5a5406a2f7cecc2588d33ac87aa40 100644
--- a/chrome/common/extensions/extension_constants.cc
+++ b/chrome/common/extensions/extension_constants.cc
@@ -126,4 +126,15 @@ const uint8_t kWebstoreSignaturesPublicKey[] = {
const int kWebstoreSignaturesPublicKeySize =
arraysize(kWebstoreSignaturesPublicKey);
+#if defined(OS_CHROMEOS)
+bool IsImeMenuExtensionId(const std::string& extension_id) {
+ const char* const kImeMenuExtensionIds[] = {
+ "gjaehgfemfahhmlgpdfknkhdnemmolop", "jkghodnilhceideoidjikpgommlajknk"};
+ for (const char* id : kImeMenuExtensionIds) {
+ if (extension_id == id)
+ return true;
+ }
+ return false;
+}
+#endif
} // namespace extension_misc
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698