diff options
author | bryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-01 00:15:11 +0000 |
---|---|---|
committer | bryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-01 00:15:11 +0000 |
commit | 4e1abca5d1833134a512fcb3585f1daee5ab0416 (patch) | |
tree | d80d4b09f6643e177724a0bdcf9ee580f450c9df /chrome/browser/safe_browsing/safe_browsing_util.cc | |
parent | ade013b7db538338131f271b335b047fc63716e7 (diff) | |
download | chromium_src-4e1abca5d1833134a512fcb3585f1daee5ab0416.zip chromium_src-4e1abca5d1833134a512fcb3585f1daee5ab0416.tar.gz chromium_src-4e1abca5d1833134a512fcb3585f1daee5ab0416.tar.bz2 |
Stop including a continue URL for SafeBrowsing reports, to get the default confirmation page.
BUG=125471
TEST=none
Review URL: http://codereview.chromium.org/10268019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134647 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing/safe_browsing_util.cc')
-rw-r--r-- | chrome/browser/safe_browsing/safe_browsing_util.cc | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_util.cc b/chrome/browser/safe_browsing/safe_browsing_util.cc index 10ef5a2..28302e0 100644 --- a/chrome/browser/safe_browsing/safe_browsing_util.cc +++ b/chrome/browser/safe_browsing/safe_browsing_util.cc @@ -12,18 +12,12 @@ #include "googleurl/src/gurl.h" #include "googleurl/src/url_util.h" #include "net/base/escape.h" -#include "unicode/locid.h" #if defined(OS_WIN) #include "chrome/installer/util/browser_distribution.h" #endif -// Continue to this URL after submitting the phishing report form. -// TODO(paulg): Change to a Chrome specific URL. -static const char kContinueUrlFormat[] = - "http://www.google.com/tools/firefox/toolbar/FT2/intl/%s/submit_success.html"; - -static const char kReportParams[] = "?tpl=%s&continue=%s&url=%s"; +static const char kReportParams[] = "?tpl=%s&url=%s"; // SBChunk --------------------------------------------------------------------- @@ -478,12 +472,6 @@ bool IsBadbinhashList(const std::string& list_name) { GURL GeneratePhishingReportUrl(const std::string& report_page, const std::string& url_to_report, bool is_client_side_detection) { - icu::Locale locale = icu::Locale::getDefault(); - const char* lang = locale.getLanguage(); - if (!lang) - lang = "en"; // fallback - const std::string continue_esc = net::EscapeQueryParamValue( - base::StringPrintf(kContinueUrlFormat, lang), true); const std::string current_esc = net::EscapeQueryParamValue(url_to_report, true); @@ -498,7 +486,6 @@ GURL GeneratePhishingReportUrl(const std::string& report_page, GURL report_url(report_page + base::StringPrintf(kReportParams, client_name.c_str(), - continue_esc.c_str(), current_esc.c_str())); return google_util::AppendGoogleLocaleParam(report_url); } |