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

Unified Diff: chrome/browser/ui/views/extensions/browser_action_drag_data.cc

Issue 818833004: Remove deprecated methods from Pickle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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: chrome/browser/ui/views/extensions/browser_action_drag_data.cc
diff --git a/chrome/browser/ui/views/extensions/browser_action_drag_data.cc b/chrome/browser/ui/views/extensions/browser_action_drag_data.cc
index b54c036c65077e293849fe9cde6919e5cd642462..b4ae1fe006a2fb31fe75a3afc3a1ae7f83732b75 100644
--- a/chrome/browser/ui/views/extensions/browser_action_drag_data.cc
+++ b/chrome/browser/ui/views/extensions/browser_action_drag_data.cc
@@ -92,15 +92,15 @@ bool BrowserActionDragData::ReadFromPickle(Pickle* pickle) {
PickleIterator data_iterator(*pickle);
const char* tmp;
- if (!pickle->ReadBytes(&data_iterator, &tmp, sizeof(profile_)))
+ if (!data_iterator.ReadBytes(&tmp, sizeof(profile_)))
return false;
memcpy(&profile_, tmp, sizeof(profile_));
- if (!pickle->ReadString(&data_iterator, &id_))
+ if (!data_iterator.ReadString(&id_))
return false;
uint64 index;
- if (!pickle->ReadUInt64(&data_iterator, &index))
+ if (!data_iterator.ReadUInt64(&index))
return false;
index_ = static_cast<size_t>(index);
« no previous file with comments | « chrome/browser/extensions/api/page_capture/page_capture_api.cc ('k') | components/bookmarks/browser/bookmark_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698