Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(887)

Unified Diff: chrome/common/extensions/extension_constants.cc

Issue 10391130: Merge 136233 - Support CWS intents query URL (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1132/src/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/extension_constants.cc
===================================================================
--- chrome/common/extensions/extension_constants.cc (revision 137042)
+++ chrome/common/extensions/extension_constants.cc (working copy)
@@ -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 @@
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);
}
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | chrome/common/extensions/extension_constants_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698