summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions')
-rw-r--r--chrome/common/extensions/extension_constants.cc16
-rw-r--r--chrome/common/extensions/extension_constants.h5
2 files changed, 0 insertions, 21 deletions
diff --git a/chrome/common/extensions/extension_constants.cc b/chrome/common/extensions/extension_constants.cc
index 297c3c1..e37b6de 100644
--- a/chrome/common/extensions/extension_constants.cc
+++ b/chrome/common/extensions/extension_constants.cc
@@ -9,7 +9,6 @@
#include "base/command_line.h"
#include "base/string_util.h"
#include "chrome/common/chrome_switches.h"
-#include "net/base/escape.h"
namespace extension_manifest_keys {
@@ -461,21 +460,6 @@ GURL GetWebstoreUpdateUrl(bool secure) {
return GURL(secure ? kGalleryUpdateHttpsUrl : kGalleryUpdateHttpUrl);
}
-GURL GetWebstoreInstallUrl(const std::string& extension_id,
- const std::string& locale) {
- std::vector<std::string> params;
- params.push_back("id=" + extension_id);
- params.push_back("lang=" + locale);
- params.push_back("uc");
- std::string url_string = extension_urls::GetWebstoreUpdateUrl(true).spec();
-
- GURL url(url_string + "?response=redirect&x=" +
- net::EscapeQueryParamValue(JoinString(params, '&'), true));
- DCHECK(url.is_valid());
-
- return url;
-}
-
const char* kGalleryBrowsePrefix = "https://chrome.google.com/webstore";
const char* kMiniGalleryBrowsePrefix = "https://tools.google.com/chrome/";
const char* kMiniGalleryDownloadPrefix = "https://dl-ssl.google.com/chrome/";
diff --git a/chrome/common/extensions/extension_constants.h b/chrome/common/extensions/extension_constants.h
index 421d228..804fb0e 100644
--- a/chrome/common/extensions/extension_constants.h
+++ b/chrome/common/extensions/extension_constants.h
@@ -303,11 +303,6 @@ namespace extension_urls {
// --apps-gallery-update-url.
GURL GetWebstoreUpdateUrl(bool secure);
- // Return the URL for an extension/app's .crx file that is hosted by the
- // webstore.
- GURL GetWebstoreInstallUrl(const std::string& extension_id,
- const std::string& locale);
-
// The greatest common prefixes of the main extensions gallery's browse and
// download URLs.
extern const char* kGalleryBrowsePrefix;