From 1c32402767e49d21eea7470cd7b89f682755d391 Mon Sep 17 00:00:00 2001 From: "tfarina@chromium.org" Date: Wed, 29 Sep 2010 00:54:13 +0000 Subject: webkit: Append base:: in the StringPrintf calls. (Note: This is a TODO in string_util.h) BUG=None TEST=None Review URL: http://codereview.chromium.org/3404027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60885 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/appcache/appcache_update_job.cc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'webkit/appcache/appcache_update_job.cc') diff --git a/webkit/appcache/appcache_update_job.cc b/webkit/appcache/appcache_update_job.cc index 4aa9328..5433e55 100644 --- a/webkit/appcache/appcache_update_job.cc +++ b/webkit/appcache/appcache_update_job.cc @@ -7,6 +7,7 @@ #include "base/compiler_specific.h" #include "base/message_loop.h" #include "base/string_util.h" +#include "base/stringprintf.h" #include "net/base/io_buffer.h" #include "net/base/load_flags.h" #include "net/base/net_errors.h" @@ -532,13 +533,13 @@ void AppCacheUpdateJob::HandleManifestFetchCompleted(URLRequest* request) { std::string message; if (!is_valid_response_code) { const char* kFormatString = "Manifest fetch failed (%d) %s"; - message = StringPrintf(kFormatString, response_code, - manifest_url_.spec().c_str()); + message = base::StringPrintf(kFormatString, response_code, + manifest_url_.spec().c_str()); } else { DCHECK(!is_valid_mime_type); const char* kFormatString = "Invalid manifest mime type (%s) %s"; - message = StringPrintf(kFormatString, mime_type.c_str(), - manifest_url_.spec().c_str()); + message = base::StringPrintf(kFormatString, mime_type.c_str(), + manifest_url_.spec().c_str()); } HandleCacheFailure(message); } @@ -576,8 +577,8 @@ void AppCacheUpdateJob::ContinueHandleManifestFetchCompleted(bool changed) { if (!ParseManifest(manifest_url_, manifest_data_.data(), manifest_data_.length(), manifest)) { const char* kFormatString = "Failed to parse manifest %s"; - const std::string message = StringPrintf(kFormatString, - manifest_url_.spec().c_str()); + const std::string message = base::StringPrintf(kFormatString, + manifest_url_.spec().c_str()); HandleCacheFailure(message); LOG(INFO) << message; return; @@ -645,8 +646,8 @@ void AppCacheUpdateJob::HandleUrlFetchCompleted(URLRequest* request) { inprogress_cache_->AddOrModifyEntry(url, entry); } else { const char* kFormatString = "Resource fetch failed (%d) %s"; - const std::string message = StringPrintf(kFormatString, response_code, - request->url().spec().c_str()); + const std::string message = base::StringPrintf(kFormatString, + response_code, request->url().spec().c_str()); HandleCacheFailure(message); return; } @@ -729,8 +730,8 @@ void AppCacheUpdateJob::HandleMasterEntryFetchCompleted(URLRequest* request) { hosts.clear(); const char* kFormatString = "Master entry fetch failed (%d) %s"; - const std::string message = StringPrintf(kFormatString, response_code, - request->url().spec().c_str()); + const std::string message = base::StringPrintf(kFormatString, + response_code, request->url().spec().c_str()); host_notifier.SendErrorNotifications(message); // In downloading case, update result is different if all master entries -- cgit v1.1