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

Unified Diff: webkit/glue/webclipboard_impl.cc

Issue 254006: Only write the image when writeImage is called. We don't write the (Closed)
Patch Set: Created 11 years, 3 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: webkit/glue/webclipboard_impl.cc
diff --git a/webkit/glue/webclipboard_impl.cc b/webkit/glue/webclipboard_impl.cc
index d9aed7ae7627f0efcad2ea3f76ea25b5c96bf00f..0341079b86b90c43b3427220467c4e18cb04ace3 100644
--- a/webkit/glue/webclipboard_impl.cc
+++ b/webkit/glue/webclipboard_impl.cc
@@ -156,11 +156,8 @@ void WebClipboardImpl::writeImage(
scw.WriteBitmapFromPixels(bitmap.getPixels(), image.size());
}
- if (!url.isEmpty()) {
- scw.WriteBookmark(title, url.spec());
- scw.WriteHTML(UTF8ToUTF16(URLToImageMarkup(url, title)), "");
- scw.WriteText(UTF8ToUTF16(url.spec()));
- }
+ // We intentionally only write the image. If the user wants the URL, they
+ // can get that from the context menu.
}
bool WebClipboardImpl::ConvertBufferType(Buffer buffer,
« 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