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

Side by Side Diff: chrome/common/extensions/extension_constants.cc

Issue 2493053002: [extensions] Stop parsing webstore urls so much (Closed)
Patch Set: rdevlin review Created 4 years, 1 month 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
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | extensions/common/extension_urls.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
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 const char* GetDefaultWebstoreUpdateUrl() {
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
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
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | extensions/common/extension_urls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698