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

Unified Diff: chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc

Issue 1372153002: Detecting and fixing stringprintf.h format bugs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separate #if defined blocks. Created 5 years, 3 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/common/extensions/api/storage/storage_schema_manifest_handler.cc
diff --git a/chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc b/chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc
index 861bd1bd8e47d54becded7bab26cb4119cb1b21b..a8a7588debc99435e8bc50e3d7367504b2ce2937 100644
--- a/chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc
+++ b/chrome/common/extensions/api/storage/storage_schema_manifest_handler.cc
@@ -49,13 +49,13 @@ policy::Schema StorageSchemaManifestHandler::GetSchema(
}
file = extension->path().AppendASCII(path);
if (!base::PathExists(file)) {
- *error =
- base::StringPrintf("File does not exist: %s", file.value().c_str());
+ *error = base::StringPrintf("File does not exist: %" PRIsFP,
+ file.value().c_str());
return policy::Schema();
}
std::string content;
if (!base::ReadFileToString(file, &content)) {
- *error = base::StringPrintf("Can't read %s", file.value().c_str());
+ *error = base::StringPrintf("Can't read %" PRIsFP, file.value().c_str());
return policy::Schema();
}
return policy::Schema::Parse(content, error);
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.cc ('k') | content/common/sandbox_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698