| OLD | NEW |
| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 #endif | 89 #endif |
| 90 | 90 |
| 91 const char kAppStateNotInstalled[] = "not_installed"; | 91 const char kAppStateNotInstalled[] = "not_installed"; |
| 92 const char kAppStateInstalled[] = "installed"; | 92 const char kAppStateInstalled[] = "installed"; |
| 93 const char kAppStateDisabled[] = "disabled"; | 93 const char kAppStateDisabled[] = "disabled"; |
| 94 const char kAppStateRunning[] = "running"; | 94 const char kAppStateRunning[] = "running"; |
| 95 const char kAppStateCannotRun[] = "cannot_run"; | 95 const char kAppStateCannotRun[] = "cannot_run"; |
| 96 const char kAppStateReadyToRun[] = "ready_to_run"; | 96 const char kAppStateReadyToRun[] = "ready_to_run"; |
| 97 | 97 |
| 98 const char kMediaFileSystemPathPart[] = "_"; | 98 const char kMediaFileSystemPathPart[] = "_"; |
| 99 | |
| 100 #if defined(OS_CHROMEOS) | |
| 101 bool IsImeMenuExtensionId(const std::string& extension_id) { | |
| 102 const char* const kImeMenuExtensionIds[] = { | |
| 103 "gjaehgfemfahhmlgpdfknkhdnemmolop", "jkghodnilhceideoidjikpgommlajknk"}; | |
| 104 for (const char* id : kImeMenuExtensionIds) { | |
| 105 if (extension_id == id) | |
| 106 return true; | |
| 107 } | |
| 108 return false; | |
| 109 } | |
| 110 #endif | |
| 111 } // namespace extension_misc | 99 } // namespace extension_misc |
| OLD | NEW |