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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc

Issue 1127963002: Implement lossy pref behavior for JsonPrefStore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-fix-flags
Patch Set: Created 5 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/incident_reporting/download_metadata_manager.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc b/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc
index 6c6a9a45ff9d5dd9c78410c7e2246f679d63aea2..1d258d343e6edf9e38662afc797208891ef0f598 100644
--- a/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc
@@ -108,10 +108,10 @@ void WriteMetadataOnWorkerPool(const base::FilePath& metadata_path,
MetadataWriteResult result = NUM_WRITE_RESULTS;
std::string file_data;
if (download_metadata->SerializeToString(&file_data)) {
- result =
- base::ImportantFileWriter::WriteFileAtomically(metadata_path, file_data)
- ? WRITE_SUCCESS
- : WRITE_FAILURE;
+ result = base::ImportantFileWriterImpl::WriteFileAtomically(metadata_path,
+ file_data)
+ ? WRITE_SUCCESS
+ : WRITE_FAILURE;
} else {
result = SERIALIZATION_FAILURE;
}

Powered by Google App Engine
This is Rietveld 408576698