| Index: chrome/common/extensions/extension_constants.cc
|
| diff --git a/chrome/common/extensions/extension_constants.cc b/chrome/common/extensions/extension_constants.cc
|
| index 844197bce1fce6375103be3ab6b5704cd112ecc2..32fd81002e2b29017df294dd7e853946061a4a8f 100644
|
| --- a/chrome/common/extensions/extension_constants.cc
|
| +++ b/chrome/common/extensions/extension_constants.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/command_line.h"
|
| #include "base/string_util.h"
|
| #include "chrome/common/chrome_switches.h"
|
| +#include "net/base/escape.h"
|
| #include "net/base/url_util.h"
|
|
|
| namespace extension_urls {
|
| @@ -48,6 +49,18 @@ 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.
|
|
|