| Index: chrome/browser/safe_browsing/protocol_manager.cc
|
| diff --git a/chrome/browser/safe_browsing/protocol_manager.cc b/chrome/browser/safe_browsing/protocol_manager.cc
|
| index 37ae77d86384fca0a359e3eb0f5733a10529c72e..609e44fb20d5ed392456aefb348119666fac5f02 100644
|
| --- a/chrome/browser/safe_browsing/protocol_manager.cc
|
| +++ b/chrome/browser/safe_browsing/protocol_manager.cc
|
| @@ -12,6 +12,7 @@
|
| #include "base/metrics/histogram.h"
|
| #include "base/rand_util.h"
|
| #include "base/stl_util-inl.h"
|
| +#include "base/stringprintf.h"
|
| #include "base/string_util.h"
|
| #include "base/task.h"
|
| #include "base/timer.h"
|
| @@ -725,9 +726,9 @@ std::string SafeBrowsingProtocolManager::ComposeUrl(
|
| const std::string& additional_query) {
|
| DCHECK(!prefix.empty() && !method.empty() &&
|
| !client_name.empty() && !version.empty());
|
| - std::string url = StringPrintf("%s/%s?client=%s&appver=%s&pver=2.2",
|
| - prefix.c_str(), method.c_str(),
|
| - client_name.c_str(), version.c_str());
|
| + std::string url = base::StringPrintf("%s/%s?client=%s&appver=%s&pver=2.2",
|
| + prefix.c_str(), method.c_str(),
|
| + client_name.c_str(), version.c_str());
|
| if (!additional_query.empty()) {
|
| DCHECK(url.find("?") != std::string::npos);
|
| url.append("&");
|
| @@ -789,7 +790,7 @@ GURL SafeBrowsingProtocolManager::SafeBrowsingHitUrl(
|
| default:
|
| NOTREACHED();
|
| }
|
| - return GURL(StringPrintf("%s&evts=%s&evtd=%s&evtr=%s&evhr=%s&evtb=%d",
|
| + return GURL(base::StringPrintf("%s&evts=%s&evtd=%s&evtr=%s&evhr=%s&evtb=%d",
|
| url.c_str(), threat_list.c_str(),
|
| EscapeQueryParamValue(malicious_url.spec(), true).c_str(),
|
| EscapeQueryParamValue(page_url.spec(), true).c_str(),
|
| @@ -799,7 +800,7 @@ GURL SafeBrowsingProtocolManager::SafeBrowsingHitUrl(
|
|
|
| GURL SafeBrowsingProtocolManager::MalwareDetailsUrl() const {
|
| // The malware details go over HTTPS.
|
| - std::string url = StringPrintf(
|
| + std::string url = base::StringPrintf(
|
| "%s/clientreport/malware?client=%s&appver=%s&pver=1.0",
|
| https_url_prefix_.c_str(),
|
| client_name_.c_str(),
|
|
|