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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_util.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
Index: chrome/browser/safe_browsing/safe_browsing_util.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_util.cc b/chrome/browser/safe_browsing/safe_browsing_util.cc
index 7b8aa9aa84f215ef5426782cc8b58a96094e9c9d..c7739f938d8f36b95ab437798132516d3423df87 100644
--- a/chrome/browser/safe_browsing/safe_browsing_util.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_util.cc
@@ -5,6 +5,8 @@
#include "chrome/browser/safe_browsing/safe_browsing_util.h"
#include "base/base64.h"
+#include "base/logging.h"
+#include "base/stringprintf.h"
#include "base/string_util.h"
#include "crypto/hmac.h"
#include "crypto/sha2.h"
@@ -503,7 +505,7 @@ GURL GeneratePhishingReportUrl(const std::string& report_page,
if (!lang)
lang = "en"; // fallback
const std::string continue_esc =
- EscapeQueryParamValue(StringPrintf(kContinueUrlFormat, lang), true);
+ EscapeQueryParamValue(base::StringPrintf(kContinueUrlFormat, lang), true);
const std::string current_esc = EscapeQueryParamValue(url_to_report, true);
#if defined(OS_WIN)
@@ -513,9 +515,10 @@ GURL GeneratePhishingReportUrl(const std::string& report_page,
std::string client_name("googlechrome");
#endif
- GURL report_url(report_page +
- StringPrintf(kReportParams, client_name.c_str(), continue_esc.c_str(),
- current_esc.c_str()));
+ 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);
}

Powered by Google App Engine
This is Rietveld 408576698