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

Unified Diff: storage/browser/fileapi/sandbox_directory_database.cc

Issue 825353003: Revert of Remove deprecated methods from Pickle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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: storage/browser/fileapi/sandbox_directory_database.cc
diff --git a/storage/browser/fileapi/sandbox_directory_database.cc b/storage/browser/fileapi/sandbox_directory_database.cc
index 8343fea823937d9845b91b70be7cfdd3e99d4d29..97a0bc8965a51bc5e9fd447a51bef530fd2acc3f 100644
--- a/storage/browser/fileapi/sandbox_directory_database.cc
+++ b/storage/browser/fileapi/sandbox_directory_database.cc
@@ -52,10 +52,10 @@
std::string name;
int64 internal_time;
- if (iter.ReadInt64(&info->parent_id) &&
- iter.ReadString(&data_path) &&
- iter.ReadString(&name) &&
- iter.ReadInt64(&internal_time)) {
+ if (pickle.ReadInt64(&iter, &info->parent_id) &&
+ pickle.ReadString(&iter, &data_path) &&
+ pickle.ReadString(&iter, &name) &&
+ pickle.ReadInt64(&iter, &internal_time)) {
info->data_path = storage::StringToFilePath(data_path);
info->name = storage::StringToFilePath(name).value();
info->modification_time = base::Time::FromInternalValue(internal_time);
« no previous file with comments | « storage/browser/fileapi/file_system_usage_cache.cc ('k') | storage/browser/fileapi/sandbox_prioritized_origin_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698