summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-31 23:37:57 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-31 23:37:57 +0000
commit7018c5f36a4d880425c0739ddfbb954a1cf042c4 (patch)
tree8484d147a77883f1f52d47fe1d83e6804f13e067 /chrome/browser
parent912c55c3595d92a518d9002ba6a73b9cf6ec34f0 (diff)
downloadchromium_src-7018c5f36a4d880425c0739ddfbb954a1cf042c4.zip
chromium_src-7018c5f36a4d880425c0739ddfbb954a1cf042c4.tar.gz
chromium_src-7018c5f36a4d880425c0739ddfbb954a1cf042c4.tar.bz2
Since bookmark copy/paste is not impl on non-Windows platforms, don't remove nodes when cutting.
BUG=18152 TEST=none TBR=erg Review URL: http://codereview.chromium.org/160488 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22221 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/bookmarks/bookmark_utils.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/bookmarks/bookmark_utils.cc b/chrome/browser/bookmarks/bookmark_utils.cc
index 83d0bb3..8de5e65b 100644
--- a/chrome/browser/bookmarks/bookmark_utils.cc
+++ b/chrome/browser/bookmarks/bookmark_utils.cc
@@ -368,12 +368,17 @@ void CopyToClipboard(BookmarkModel* model,
// implemented somewhere else?
#endif
+ // The following works cross-platform but I'm disabling it for now so that
+ // users who Cut a bookmark or folder won't lose it without being able to
+ // paste it.
+#if defind(OS_WIN)
if (remove_nodes) {
for (size_t i = 0; i < nodes.size(); ++i) {
model->Remove(nodes[i]->GetParent(),
nodes[i]->GetParent()->IndexOfChild(nodes[i]));
}
}
+#endif
}
void PasteFromClipboard(BookmarkModel* model,