Chromium Code Reviews| 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 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 const char kGalleryUpdateHttpsUrl[] = | 13 const char kGalleryUpdateHttpsUrl[] = |
| 14 "https://clients2.google.com/service/update2/crx"; | 14 "https://clients2.google.com/service/update2/crx"; |
| 15 | 15 |
| 16 } // namespace | 16 } // namespace |
| 17 | 17 |
| 18 GURL GetDefaultWebstoreUpdateUrl() { | 18 std::string GetDefaultWebstoreUpdateUrl() { |
|
Devlin
2016/11/11 23:11:31
Why std::string instead of const char*? Most call
Charlie Harrison
2016/11/12 02:24:34
Good catch. Done.
| |
| 19 return GURL(kGalleryUpdateHttpsUrl); | 19 return kGalleryUpdateHttpsUrl; |
| 20 } | 20 } |
| 21 | 21 |
| 22 const char kWebstoreSourceField[] = "utm_source"; | 22 const char kWebstoreSourceField[] = "utm_source"; |
| 23 | 23 |
| 24 const char kLaunchSourceAppList[] = "chrome-app-launcher"; | 24 const char kLaunchSourceAppList[] = "chrome-app-launcher"; |
| 25 const char kLaunchSourceAppListSearch[] = "chrome-app-launcher-search"; | 25 const char kLaunchSourceAppListSearch[] = "chrome-app-launcher-search"; |
| 26 const char kLaunchSourceAppListInfoDialog[] = "chrome-app-launcher-info-dialog"; | 26 const char kLaunchSourceAppListInfoDialog[] = "chrome-app-launcher-info-dialog"; |
| 27 | 27 |
| 28 } // namespace extension_urls | 28 } // namespace extension_urls |
| 29 | 29 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 102 const char* const kImeMenuExtensionIds[] = { | 102 const char* const kImeMenuExtensionIds[] = { |
| 103 "gjaehgfemfahhmlgpdfknkhdnemmolop", "jkghodnilhceideoidjikpgommlajknk"}; | 103 "gjaehgfemfahhmlgpdfknkhdnemmolop", "jkghodnilhceideoidjikpgommlajknk"}; |
| 104 for (const char* id : kImeMenuExtensionIds) { | 104 for (const char* id : kImeMenuExtensionIds) { |
| 105 if (extension_id == id) | 105 if (extension_id == id) |
| 106 return true; | 106 return true; |
| 107 } | 107 } |
| 108 return false; | 108 return false; |
| 109 } | 109 } |
| 110 #endif | 110 #endif |
| 111 } // namespace extension_misc | 111 } // namespace extension_misc |
| OLD | NEW |