Index: chrome/browser/ui/views/extensions/browser_action_drag_data.cc |
=================================================================== |
--- chrome/browser/ui/views/extensions/browser_action_drag_data.cc (revision 126508) |
+++ chrome/browser/ui/views/extensions/browser_action_drag_data.cc (working copy) |
@@ -67,7 +67,7 @@ |
Profile* profile, Pickle* pickle) const { |
pickle->WriteBytes(&profile, sizeof(profile)); |
pickle->WriteString(id_); |
- pickle->WriteSize(index_); |
+ pickle->WriteUInt64(index_); |
} |
bool BrowserActionDragData::ReadFromPickle(Pickle* pickle) { |
@@ -81,8 +81,10 @@ |
if (!pickle->ReadString(&data_iterator, &id_)) |
return false; |
- if (!pickle->ReadSize(&data_iterator, &index_)) |
+ uint64 index; |
+ if (!pickle->ReadUInt64(&data_iterator, &index)) |
return false; |
+ index_ = static_cast<size_t>(index); |
return true; |
} |