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

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: Move the helper funciton below the constants. 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
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..0ffcb459ccfa049e0b64c24088924a680c79aca3 100644
--- a/chrome/common/extensions/extension_constants.cc
+++ b/chrome/common/extensions/extension_constants.cc
@@ -81,6 +81,16 @@ const char kSpeechSynthesisExtensionId[] =
const char kWallpaperManagerId[] = "obklkkbkpaoaejdabbfldmcfplpdgolj";
const char kWebstoreWidgetAppId[] = "fbjakikfhfdajcamjleinfciajelkpek";
const char kZIPUnpackerExtensionId[] = "oedeeodfidgoollimchfdnbmhcpnklnd";
+
+const char* const kImeMenuExtensionIds[] = {"gjaehgfemfahhmlgpdfknkhdnemmolop",
+ "jkghodnilhceideoidjikpgommlajknk"};
+bool IsImeMenuExtensionId(const std::string& extension_id) {
+ for (const char* id : kImeMenuExtensionIds) {
+ if (extension_id == id)
+ return true;
+ }
+ return false;
+}
stevenjb 2016/01/29 17:53:27 Sorry if I wasn't clear, but this should also be p
Azure Wei 2016/01/30 09:04:13 Done.
#else
// The extension id for the web store extension.
const char kChromeVoxExtensionId[] =

Powered by Google App Engine
This is Rietveld 408576698