summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_update_job.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-29 00:54:13 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-29 00:54:13 +0000
commit1c32402767e49d21eea7470cd7b89f682755d391 (patch)
treed3a11c042eb63dcb1032002038a987d0c191926e /webkit/appcache/appcache_update_job.cc
parentd4bc96e84f87586da6a312a3c8eed3a12b3221d3 (diff)
downloadchromium_src-1c32402767e49d21eea7470cd7b89f682755d391.zip
chromium_src-1c32402767e49d21eea7470cd7b89f682755d391.tar.gz
chromium_src-1c32402767e49d21eea7470cd7b89f682755d391.tar.bz2
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
Diffstat (limited to 'webkit/appcache/appcache_update_job.cc')
-rw-r--r--webkit/appcache/appcache_update_job.cc21
1 files changed, 11 insertions, 10 deletions
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