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

Unified Diff: components/sessions/session_command.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/sessions/session_command.cc
diff --git a/components/sessions/session_command.cc b/components/sessions/session_command.cc
index 59fc6fcd872e06ec5571df897feadf00ce8d1a51..a7cd59df24fe120d610d30c2f6aef5a7067966ea 100644
--- a/components/sessions/session_command.cc
+++ b/components/sessions/session_command.cc
@@ -14,7 +14,7 @@ SessionCommand::SessionCommand(id_type id, size_type size)
contents_(size, 0) {
}
-SessionCommand::SessionCommand(id_type id, const Pickle& pickle)
+SessionCommand::SessionCommand(id_type id, const base::Pickle& pickle)
: id_(id),
contents_(pickle.size(), 0) {
DCHECK(pickle.size() < std::numeric_limits<size_type>::max());
@@ -28,8 +28,8 @@ bool SessionCommand::GetPayload(void* dest, size_t count) const {
return true;
}
-Pickle* SessionCommand::PayloadAsPickle() const {
- return new Pickle(contents(), static_cast<int>(size()));
+base::Pickle* SessionCommand::PayloadAsPickle() const {
+ return new base::Pickle(contents(), static_cast<int>(size()));
}
} // namespace sessions
« no previous file with comments | « components/sessions/serialized_navigation_entry_unittest.cc ('k') | components/sessions/session_service_commands.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698