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

Unified Diff: base/file_path.cc

Issue 9447084: Refactor Pickle Read methods to use higher performance PickleIterator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile (racing with incoming CLs) Created 8 years, 9 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
« no previous file with comments | « base/file_path.h ('k') | base/metrics/histogram.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_path.cc
diff --git a/base/file_path.cc b/base/file_path.cc
index c4f1c540948abd3281e188f86de6dc49edd98231..3b1fca4b4ed6c7e8c0e52bf643211d66204a3c97 100644
--- a/base/file_path.cc
+++ b/base/file_path.cc
@@ -586,12 +586,12 @@ void FilePath::WriteToPickle(Pickle* pickle) {
#endif
}
-bool FilePath::ReadFromPickle(Pickle* pickle, void** iter) {
+bool FilePath::ReadFromPickle(PickleIterator* iter) {
#if defined(OS_WIN)
- if (!pickle->ReadString16(iter, &path_))
+ if (!iter->ReadString16(&path_))
return false;
#else
- if (!pickle->ReadString(iter, &path_))
+ if (!iter->ReadString(&path_))
return false;
#endif
« no previous file with comments | « base/file_path.h ('k') | base/metrics/histogram.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698