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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit_view_win.cc

Issue 194052: Clipboard:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fixes 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 | « base/scoped_clipboard_writer.cc ('k') | chrome/browser/bookmarks/bookmark_drag_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_edit_view_win.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete_edit_view_win.cc (revision 25821)
+++ chrome/browser/autocomplete/autocomplete_edit_view_win.cc (working copy)
@@ -39,6 +39,7 @@
#include "chrome/common/notification_service.h"
#include "googleurl/src/url_util.h"
#include "grit/generated_resources.h"
+#include "net/base/escape.h"
#include "skia/ext/skia_utils_win.h"
#include "views/drag_utils.h"
#include "views/focus/focus_util_win.h"
@@ -1197,7 +1198,8 @@
scw.WriteText(UTF8ToWide(url.spec()));
else
scw.WriteText(text);
- scw.WriteHyperlink(text, url.spec());
+ scw.WriteBookmark(text, url.spec());
+ scw.WriteHyperlink(EscapeForHTML(UTF16ToUTF8(text)), url.spec());
return;
}
}
« no previous file with comments | « base/scoped_clipboard_writer.cc ('k') | chrome/browser/bookmarks/bookmark_drag_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698