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

Unified Diff: chrome/browser/bookmarks/bookmark_utils.cc

Issue 160488: Since bookmark copy/paste is not impl on non-Windows platforms, don't remove ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_utils.cc
===================================================================
--- chrome/browser/bookmarks/bookmark_utils.cc (revision 22220)
+++ chrome/browser/bookmarks/bookmark_utils.cc (working copy)
@@ -368,12 +368,17 @@
// 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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698