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

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

Issue 25894003: Don't write URLs to clipboard from views omnibox as hyperlinks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 2 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
Index: chrome/browser/bookmarks/bookmark_node_data.cc
diff --git a/chrome/browser/bookmarks/bookmark_node_data.cc b/chrome/browser/bookmarks/bookmark_node_data.cc
index b1d201fa709f01562dcfae409646c967ef29a49f..0bad59832ee36d925072e74724fe146462bd89b6 100644
--- a/chrome/browser/bookmarks/bookmark_node_data.cc
+++ b/chrome/browser/bookmarks/bookmark_node_data.cc
@@ -143,7 +143,12 @@ void BookmarkNodeData::WriteToClipboard() const {
const std::string url = elements[0].url.spec();
scw.WriteBookmark(title, url);
+#if !defined(OS_WIN)
Peter Kasting 2013/10/05 00:42:27 This makes me wonder if we should also avoid writi
scottmg 2013/10/07 22:16:27 I confirmed that the behaviour is same (font-prese
+ // http://crbug.com/976. We don't want hyperlink formatted text on Windows
+ // as that carries font information which can be annoying to remove when
+ // pasting into other programs.
Peter Kasting 2013/10/05 00:42:27 Nit: I generally try to avoid bug links, since the
scottmg 2013/10/07 22:16:27 Done.
scw.WriteHyperlink(title, url);
+#endif
// Also write the URL to the clipboard as text so that it can be pasted
// into text fields. We use WriteText instead of WriteURL because we don't

Powered by Google App Engine
This is Rietveld 408576698