diff options
author | rdevlin.cronin <rdevlin.cronin@chromium.org> | 2015-07-15 16:51:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-15 23:52:07 +0000 |
commit | de23cacc840c6c184c67d30de9ff07f7c4f71307 (patch) | |
tree | ffcf0a3569ed8eb9b76113e13e365418bed24861 /extensions/common/extension_urls.cc | |
parent | 4cf2aa39e2220a3b5ef50a95fc11cf4ff35a85d5 (diff) | |
download | chromium_src-de23cacc840c6c184c67d30de9ff07f7c4f71307.zip chromium_src-de23cacc840c6c184c67d30de9ff07f7c4f71307.tar.gz chromium_src-de23cacc840c6c184c67d30de9ff07f7c4f71307.tar.bz2 |
[Extensions] Add a referrer to the url for reporting extension abuse
Add a referrer to the url that we use to report abuse from the extension
uninstall dialog so that we can track its usage separately.
BUG=510618
Review URL: https://codereview.chromium.org/1237313003
Cr-Commit-Position: refs/heads/master@{#338950}
Diffstat (limited to 'extensions/common/extension_urls.cc')
-rw-r--r-- | extensions/common/extension_urls.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/common/extension_urls.cc b/extensions/common/extension_urls.cc index c4215bc..08fb32d 100644 --- a/extensions/common/extension_urls.cc +++ b/extensions/common/extension_urls.cc @@ -5,6 +5,7 @@ #include "extensions/common/extension_urls.h" #include "base/strings/string_util.h" +#include "base/strings/stringprintf.h" #include "base/strings/utf_string_conversions.h" #include "extensions/common/constants.h" #include "extensions/common/extensions_client.h" @@ -71,8 +72,11 @@ GURL GetWebstoreUpdateUrl() { return GURL(kChromeWebstoreUpdateURL); } -GURL GetWebstoreReportAbuseUrl(const std::string& extension_id) { - return GURL(GetWebstoreLaunchURL() + "/report/" + extension_id); +GURL GetWebstoreReportAbuseUrl(const std::string& extension_id, + const std::string& referrer_id) { + return GURL(base::StringPrintf("%s/report/%s?utm_source=%s", + GetWebstoreLaunchURL().c_str(), + extension_id.c_str(), referrer_id.c_str())); } bool IsWebstoreUpdateUrl(const GURL& update_url) { |