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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/macros.h" 5 #include "base/macros.h"
6 #include "build/build_config.h" 6 #include "build/build_config.h"
7 #include "chrome/common/extensions/extension_constants.h" 7 #include "chrome/common/extensions/extension_constants.h"
8 8
9 namespace extension_urls { 9 namespace extension_urls {
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const char kConnectivityDiagnosticsLauncherPath[] = 74 const char kConnectivityDiagnosticsLauncherPath[] =
75 "/usr/share/chromeos-assets/connectivity_diagnostics_launcher"; 75 "/usr/share/chromeos-assets/connectivity_diagnostics_launcher";
76 const char kFirstRunDialogId[] = "jdgcneonijmofocbhmijhacgchbihela"; 76 const char kFirstRunDialogId[] = "jdgcneonijmofocbhmijhacgchbihela";
77 const char kSpeechSynthesisExtensionPath[] = 77 const char kSpeechSynthesisExtensionPath[] =
78 "/usr/share/chromeos-assets/speech_synthesis/patts"; 78 "/usr/share/chromeos-assets/speech_synthesis/patts";
79 const char kSpeechSynthesisExtensionId[] = 79 const char kSpeechSynthesisExtensionId[] =
80 "gjjabgpgjpampikjhjpfhneeoapjbjaf"; 80 "gjjabgpgjpampikjhjpfhneeoapjbjaf";
81 const char kWallpaperManagerId[] = "obklkkbkpaoaejdabbfldmcfplpdgolj"; 81 const char kWallpaperManagerId[] = "obklkkbkpaoaejdabbfldmcfplpdgolj";
82 const char kWebstoreWidgetAppId[] = "fbjakikfhfdajcamjleinfciajelkpek"; 82 const char kWebstoreWidgetAppId[] = "fbjakikfhfdajcamjleinfciajelkpek";
83 const char kZIPUnpackerExtensionId[] = "oedeeodfidgoollimchfdnbmhcpnklnd"; 83 const char kZIPUnpackerExtensionId[] = "oedeeodfidgoollimchfdnbmhcpnklnd";
84
85 const char* const kImeMenuExtensionIds[] = {"gjaehgfemfahhmlgpdfknkhdnemmolop",
86 "jkghodnilhceideoidjikpgommlajknk"};
87 bool IsImeMenuExtensionId(const std::string& extension_id) {
88 for (const char* id : kImeMenuExtensionIds) {
89 if (extension_id == id)
90 return true;
91 }
92 return false;
93 }
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.
84 #else 94 #else
85 // The extension id for the web store extension. 95 // The extension id for the web store extension.
86 const char kChromeVoxExtensionId[] = 96 const char kChromeVoxExtensionId[] =
87 "kgejglhpjiefppelpmljglcjbhoiplfn"; 97 "kgejglhpjiefppelpmljglcjbhoiplfn";
88 #endif 98 #endif
89 99
90 const char kAppStateNotInstalled[] = "not_installed"; 100 const char kAppStateNotInstalled[] = "not_installed";
91 const char kAppStateInstalled[] = "installed"; 101 const char kAppStateInstalled[] = "installed";
92 const char kAppStateDisabled[] = "disabled"; 102 const char kAppStateDisabled[] = "disabled";
93 const char kAppStateRunning[] = "running"; 103 const char kAppStateRunning[] = "running";
(...skipping 26 matching lines...) Expand all
120 0xfc, 0xf3, 0x08, 0x12, 0xff, 0x93, 0xbd, 0x62, 0x31, 0xd8, 0x1c, 0xea, 130 0xfc, 0xf3, 0x08, 0x12, 0xff, 0x93, 0xbd, 0x62, 0x31, 0xd8, 0x1c, 0xea,
121 0x1a, 0x9e, 0xf5, 0x81, 0x28, 0x7f, 0x75, 0x5e, 0xd2, 0x27, 0x7a, 0xc2, 131 0x1a, 0x9e, 0xf5, 0x81, 0x28, 0x7f, 0x75, 0x5e, 0xd2, 0x27, 0x7a, 0xc2,
122 0x96, 0xf5, 0x9d, 0xdb, 0x18, 0xfc, 0x76, 0xdc, 0x46, 0xf0, 0x57, 0xc0, 132 0x96, 0xf5, 0x9d, 0xdb, 0x18, 0xfc, 0x76, 0xdc, 0x46, 0xf0, 0x57, 0xc0,
123 0x58, 0x34, 0xc8, 0x22, 0x2d, 0x2a, 0x65, 0x75, 0xa7, 0xd9, 0x08, 0x62, 133 0x58, 0x34, 0xc8, 0x22, 0x2d, 0x2a, 0x65, 0x75, 0xa7, 0xd9, 0x08, 0x62,
124 0xcd, 0x02, 0x03, 0x01, 0x00, 0x01}; 134 0xcd, 0x02, 0x03, 0x01, 0x00, 0x01};
125 135
126 const int kWebstoreSignaturesPublicKeySize = 136 const int kWebstoreSignaturesPublicKeySize =
127 arraysize(kWebstoreSignaturesPublicKey); 137 arraysize(kWebstoreSignaturesPublicKey);
128 138
129 } // namespace extension_misc 139 } // namespace extension_misc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698