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

Unified Diff: components/nacl/browser/nacl_browser.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: components/nacl/browser/nacl_browser.cc
diff --git a/components/nacl/browser/nacl_browser.cc b/components/nacl/browser/nacl_browser.cc
index 733e9d96652b40982cdb4a9f3aa25966380b2de6..b45651eba5c7801c10296aac85a5c8a22e7538c6 100644
--- a/components/nacl/browser/nacl_browser.cc
+++ b/components/nacl/browser/nacl_browser.cc
@@ -84,7 +84,7 @@ void ReadCache(const base::FilePath& filename, std::string* data) {
}
}
-void WriteCache(const base::FilePath& filename, const Pickle* pickle) {
+void WriteCache(const base::FilePath& filename, const base::Pickle* pickle) {
base::WriteFile(filename, static_cast<const char*>(pickle->data()),
pickle->size());
}
@@ -357,7 +357,7 @@ void NaClBrowser::OnValidationCacheLoaded(const std::string *data) {
// No file found.
validation_cache_.Reset();
} else {
- Pickle pickle(data->data(), data->size());
+ base::Pickle pickle(data->data(), data->size());
validation_cache_.Deserialize(&pickle);
}
validation_cache_state_ = NaClResourceReady;
@@ -528,7 +528,7 @@ void NaClBrowser::PersistValidationCache() {
// validation_cache_file_path_ may be empty if something went wrong during
// initialization.
if (validation_cache_is_modified_ && !validation_cache_file_path_.empty()) {
- Pickle* pickle = new Pickle();
+ base::Pickle* pickle = new base::Pickle();
validation_cache_.Serialize(pickle);
// Pass the serialized data to another thread to write to disk. File IO is
« no previous file with comments | « components/bookmarks/browser/bookmark_node_data_views.cc ('k') | components/nacl/browser/nacl_validation_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698