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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.cc

Issue 10827330: Don't copy urls in richtext from omnibox on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove {} Created 8 years, 4 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/ui/views/omnibox/omnibox_view_win.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
index 1fecea8e197831826fa79f2b8a9ee6da9e60c26f..dd0fead538aaeb349443bed6553911e6acbf1173 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
@@ -1334,10 +1334,8 @@ void OmniboxViewWin::OnCopy() {
ui::ScopedClipboardWriter scw(g_browser_process->clipboard(),
ui::Clipboard::BUFFER_STANDARD);
scw.WriteText(text);
- if (write_url) {
+ if (write_url)
scw.WriteBookmark(text, url.spec());
- scw.WriteHyperlink(net::EscapeForHTML(text), url.spec());
- }
}
void OmniboxViewWin::OnCut() {
« 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