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 "chrome/common/extensions/extension_constants.h" | 5 #include "chrome/common/extensions/extension_constants.h" |
6 #include "chrome/common/extensions/extension_manifest_constants.h" | 6 #include "chrome/common/extensions/extension_manifest_constants.h" |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
13 #include "net/base/escape.h" | 13 #include "net/base/escape.h" |
14 #include "net/base/url_util.h" | 14 #include "net/base/url_util.h" |
15 | 15 |
16 namespace extension_urls { | 16 namespace extension_urls { |
17 | 17 |
18 std::string GetWebstoreLaunchURL() { | 18 std::string GetWebstoreLaunchURL() { |
19 std::string gallery_prefix = kGalleryBrowsePrefix; | 19 std::string gallery_prefix = kGalleryBrowsePrefix; |
20 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppsGalleryURL)) | 20 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppsGalleryURL)) |
21 gallery_prefix = CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 21 gallery_prefix = CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 const int kScriptBadgeIconSizes[] = { | 183 const int kScriptBadgeIconSizes[] = { |
184 EXTENSION_ICON_BITTY, // 16 | 184 EXTENSION_ICON_BITTY, // 16 |
185 2 * EXTENSION_ICON_BITTY // 32 | 185 2 * EXTENSION_ICON_BITTY // 32 |
186 }; | 186 }; |
187 | 187 |
188 const size_t kNumScriptBadgeIconSizes = | 188 const size_t kNumScriptBadgeIconSizes = |
189 arraysize(kScriptBadgeIconSizes); | 189 arraysize(kScriptBadgeIconSizes); |
190 | 190 |
191 } // namespace extension_misc | 191 } // namespace extension_misc |
OLD | NEW |