| Index: chrome/common/extensions/extension_constants.cc
|
| diff --git a/chrome/common/extensions/extension_constants.cc b/chrome/common/extensions/extension_constants.cc
|
| index 289428302fb8ce63d070e04db2885136c5401016..afb38549f4a7396fcb3e883ae5d1bb8871c5a1bc 100644
|
| --- a/chrome/common/extensions/extension_constants.cc
|
| +++ b/chrome/common/extensions/extension_constants.cc
|
| @@ -9,45 +9,9 @@
|
| #include "base/command_line.h"
|
| #include "base/strings/string_util.h"
|
| #include "chrome/common/chrome_switches.h"
|
| -#include "net/base/escape.h"
|
| -#include "net/base/url_util.h"
|
|
|
| namespace extension_urls {
|
|
|
| -std::string GetWebstoreLaunchURL() {
|
| - std::string gallery_prefix = kGalleryBrowsePrefix;
|
| - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAppsGalleryURL))
|
| - gallery_prefix = CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
|
| - switches::kAppsGalleryURL);
|
| - if (EndsWith(gallery_prefix, "/", true))
|
| - gallery_prefix = gallery_prefix.substr(0, gallery_prefix.length() - 1);
|
| - return gallery_prefix;
|
| -}
|
| -
|
| -std::string GetExtensionGalleryURL() {
|
| - return GetWebstoreLaunchURL() + "/category/extensions";
|
| -}
|
| -
|
| -std::string GetWebstoreItemDetailURLPrefix() {
|
| - return GetWebstoreLaunchURL() + "/detail/";
|
| -}
|
| -
|
| -GURL GetWebstoreItemJsonDataURL(const std::string& extension_id) {
|
| - return GURL(GetWebstoreLaunchURL() + "/inlineinstall/detail/" + extension_id);
|
| -}
|
| -
|
| -GURL GetWebstoreJsonSearchUrl(const std::string& query, const std::string& hl) {
|
| - GURL url(GetWebstoreLaunchURL() + "/jsonsearch");
|
| - url = net::AppendQueryParameter(url, "q", query);
|
| - url = net::AppendQueryParameter(url, "hl", hl);
|
| - return url;
|
| -}
|
| -
|
| -GURL GetWebstoreSearchPageUrl(const std::string& query) {
|
| - return GURL(GetWebstoreLaunchURL() + "/search/" +
|
| - net::EscapeQueryParamValue(query, false));
|
| -}
|
| -
|
| const char kGalleryUpdateHttpsUrl[] =
|
| "https://clients2.google.com/service/update2/crx";
|
| // TODO(battre): Delete the HTTP URL once the blacklist is downloaded via HTTPS.
|
| @@ -85,8 +49,6 @@ bool IsBlacklistUpdateUrl(const GURL& url) {
|
| StartsWithASCII(url.spec(), kExtensionBlocklistHttpsUrlPrefix, true);
|
| }
|
|
|
| -const char kGalleryBrowsePrefix[] = "https://chrome.google.com/webstore";
|
| -
|
| const char kWebstoreSourceField[] = "utm_source";
|
|
|
| const char kLaunchSourceAppList[] = "chrome-app-launcher";
|
|
|