| Index: chrome/common/extensions/extension_constants.cc
|
| diff --git a/chrome/common/extensions/extension_constants.cc b/chrome/common/extensions/extension_constants.cc
|
| index 9212ec25d751167f2093fcc219ba7b1fe627ed7c..d5e30eab3f496b65497be5cc69a9d050386ef183 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 "chrome/common/net/url_util.h"
|
|
|
| namespace extension_urls {
|
| std::string GetWebstoreLaunchURL() {
|
| @@ -26,6 +27,18 @@ std::string GetWebstoreItemDetailURLPrefix() {
|
| return GetWebstoreLaunchURL() + "/detail/";
|
| }
|
|
|
| +GURL GetWebstoreIntentQueryURL(const std::string& action,
|
| + const std::string& type) {
|
| + const char kIntentsCategoryPath[] = "category/collection/webintent_apps";
|
| +
|
| + GURL url(std::string(kGalleryBrowsePrefix) + "/");
|
| + url = url.Resolve(kIntentsCategoryPath);
|
| + url = chrome_common_net::AppendQueryParameter(url, "_wi", action);
|
| + url = chrome_common_net::AppendQueryParameter(url, "_mt", type);
|
| +
|
| + return url;
|
| +}
|
| +
|
| GURL GetWebstoreItemJsonDataURL(const std::string& extension_id) {
|
| return GURL(GetWebstoreLaunchURL() + "/inlineinstall/detail/" + extension_id);
|
| }
|
|
|