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

Unified Diff: chrome/browser/safe_browsing/protocol_manager.cc

Issue 7004007: iwyu: Include stringprintf.h where appropriate, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix 2. Created 9 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
« no previous file with comments | « chrome/browser/process_singleton_linux.cc ('k') | chrome/browser/safe_browsing/protocol_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(),
« no previous file with comments | « chrome/browser/process_singleton_linux.cc ('k') | chrome/browser/safe_browsing/protocol_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698