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

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

Issue 1154283003: Change most uses of Pickle to base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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: storage/browser/fileapi/sandbox_prioritized_origin_database.cc
diff --git a/storage/browser/fileapi/sandbox_prioritized_origin_database.cc b/storage/browser/fileapi/sandbox_prioritized_origin_database.cc
index 9a64edf63ed7ed3a1059c40a38856eda42ba919b..3a677a800b41223522c712f1dbbc6dddd8b7b927 100644
--- a/storage/browser/fileapi/sandbox_prioritized_origin_database.cc
+++ b/storage/browser/fileapi/sandbox_prioritized_origin_database.cc
@@ -30,7 +30,7 @@ bool WritePrimaryOriginFile(const base::FilePath& path,
return false;
if (!file.created())
file.SetLength(0);
- Pickle pickle;
+ base::Pickle pickle;
pickle.WriteString(origin);
file.Write(0, static_cast<const char*>(pickle.data()), pickle.size());
file.Flush();
@@ -42,8 +42,8 @@ bool ReadPrimaryOriginFile(const base::FilePath& path,
std::string buffer;
if (!base::ReadFileToString(path, &buffer))
return false;
- Pickle pickle(buffer.data(), buffer.size());
- PickleIterator iter(pickle);
+ base::Pickle pickle(buffer.data(), buffer.size());
+ base::PickleIterator iter(pickle);
return iter.ReadString(origin) && !origin->empty();
}
« no previous file with comments | « storage/browser/fileapi/sandbox_directory_database.cc ('k') | third_party/mojo/src/mojo/edk/system/message_pipe_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698