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

Unified Diff: content/browser/download/base_file.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: content/browser/download/base_file.cc
diff --git a/content/browser/download/base_file.cc b/content/browser/download/base_file.cc
index 62ffe57fea2dd9ab6d0f9d8f3b3ce3b06605eb3e..f9b80155018d4a00aa2a6df90bcb32b3666c2672 100644
--- a/content/browser/download/base_file.cc
+++ b/content/browser/download/base_file.cc
@@ -47,8 +47,9 @@ BaseFile::BaseFile(const base::FilePath& full_path,
secure_hash_.reset(crypto::SecureHash::Create(crypto::SecureHash::SHA256));
if ((bytes_so_far_ > 0) && // Not starting at the beginning.
(!IsEmptyHash(hash_state_bytes))) {
- Pickle hash_state(hash_state_bytes.c_str(), hash_state_bytes.size());
- PickleIterator data_iterator(hash_state);
+ base::Pickle hash_state(hash_state_bytes.c_str(),
+ hash_state_bytes.size());
+ base::PickleIterator data_iterator(hash_state);
secure_hash_->Deserialize(&data_iterator);
}
}
@@ -225,7 +226,7 @@ std::string BaseFile::GetHashState() {
if (!calculate_hash_)
return std::string();
- Pickle hash_state;
+ base::Pickle hash_state;
if (!secure_hash_->Serialize(&hash_state))
return std::string();
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_message_filter.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698