summaryrefslogtreecommitdiffstats
path: root/components/bookmarks
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-06-02 21:29:25 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-03 04:30:27 +0000
commitbd4d71128239a38fa844c42e4110458109a8b135 (patch)
tree47ff0ad11b9270fb410d93632fd63a0c78218176 /components/bookmarks
parent6f89d8f965bae07a352ee82abe1fb551f65d65e1 (diff)
downloadchromium_src-bd4d71128239a38fa844c42e4110458109a8b135.zip
chromium_src-bd4d71128239a38fa844c42e4110458109a8b135.tar.gz
chromium_src-bd4d71128239a38fa844c42e4110458109a8b135.tar.bz2
Change most uses of Pickle to base::Pickle
There should be no behavior change. TBR=jschuh (IPC messages) Review URL: https://codereview.chromium.org/1154283003 Cr-Commit-Position: refs/heads/master@{#332552}
Diffstat (limited to 'components/bookmarks')
-rw-r--r--components/bookmarks/browser/bookmark_node_data.cc14
-rw-r--r--components/bookmarks/browser/bookmark_node_data_views.cc4
2 files changed, 9 insertions, 9 deletions
diff --git a/components/bookmarks/browser/bookmark_node_data.cc b/components/bookmarks/browser/bookmark_node_data.cc
index a781516..36b1bdd 100644
--- a/components/bookmarks/browser/bookmark_node_data.cc
+++ b/components/bookmarks/browser/bookmark_node_data.cc
@@ -37,7 +37,7 @@ BookmarkNodeData::Element::Element(const BookmarkNode* node)
BookmarkNodeData::Element::~Element() {
}
-void BookmarkNodeData::Element::WriteToPickle(Pickle* pickle) const {
+void BookmarkNodeData::Element::WriteToPickle(base::Pickle* pickle) const {
pickle->WriteBool(is_url);
pickle->WriteString(url.spec());
pickle->WriteString16(title);
@@ -57,7 +57,7 @@ void BookmarkNodeData::Element::WriteToPickle(Pickle* pickle) const {
}
}
-bool BookmarkNodeData::Element::ReadFromPickle(PickleIterator* iterator) {
+bool BookmarkNodeData::Element::ReadFromPickle(base::PickleIterator* iterator) {
std::string url_spec;
if (!iterator->ReadBool(&is_url) ||
!iterator->ReadString(&url_spec) ||
@@ -194,7 +194,7 @@ void BookmarkNodeData::WriteToClipboard(ui::ClipboardType clipboard_type) {
scw.WriteText(text);
}
- Pickle pickle;
+ base::Pickle pickle;
WriteToPickle(base::FilePath(), &pickle);
scw.WritePickledData(pickle,
ui::Clipboard::GetFormatType(kClipboardFormatString));
@@ -208,7 +208,7 @@ bool BookmarkNodeData::ReadFromClipboard(ui::ClipboardType type) {
&data);
if (!data.empty()) {
- Pickle pickle(data.data(), static_cast<int>(data.size()));
+ base::Pickle pickle(data.data(), static_cast<int>(data.size()));
if (ReadFromPickle(&pickle))
return true;
}
@@ -232,7 +232,7 @@ bool BookmarkNodeData::ReadFromClipboard(ui::ClipboardType type) {
#endif
void BookmarkNodeData::WriteToPickle(const base::FilePath& profile_path,
- Pickle* pickle) const {
+ base::Pickle* pickle) const {
profile_path.WriteToPickle(pickle);
pickle->WriteSizeT(size());
@@ -240,8 +240,8 @@ void BookmarkNodeData::WriteToPickle(const base::FilePath& profile_path,
elements[i].WriteToPickle(pickle);
}
-bool BookmarkNodeData::ReadFromPickle(Pickle* pickle) {
- PickleIterator data_iterator(*pickle);
+bool BookmarkNodeData::ReadFromPickle(base::Pickle* pickle) {
+ base::PickleIterator data_iterator(*pickle);
size_t element_count;
if (profile_path_.ReadFromPickle(&data_iterator) &&
data_iterator.ReadSizeT(&element_count)) {
diff --git a/components/bookmarks/browser/bookmark_node_data_views.cc b/components/bookmarks/browser/bookmark_node_data_views.cc
index 809113d..efd2733 100644
--- a/components/bookmarks/browser/bookmark_node_data_views.cc
+++ b/components/bookmarks/browser/bookmark_node_data_views.cc
@@ -37,7 +37,7 @@ void BookmarkNodeData::Write(const base::FilePath& profile_path,
}
}
- Pickle data_pickle;
+ base::Pickle data_pickle;
WriteToPickle(profile_path, &data_pickle);
data->SetPickledData(GetBookmarkCustomFormat(), data_pickle);
@@ -49,7 +49,7 @@ bool BookmarkNodeData::Read(const ui::OSExchangeData& data) {
profile_path_.clear();
if (data.HasCustomFormat(GetBookmarkCustomFormat())) {
- Pickle drag_data_pickle;
+ base::Pickle drag_data_pickle;
if (data.GetPickledData(GetBookmarkCustomFormat(), &drag_data_pickle)) {
if (!ReadFromPickle(&drag_data_pickle))
return false;