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

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

Issue 1734011: Adds comment to AdjustTextForCopy. I saw your request for a... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 8 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/autocomplete/autocomplete_edit.cc
===================================================================
--- chrome/browser/autocomplete/autocomplete_edit.cc (revision 45700)
+++ chrome/browser/autocomplete/autocomplete_edit.cc (working copy)
@@ -184,6 +184,9 @@
return; // Can't be parsed as a url, no need to adjust text.
if (!user_input_in_progress() && is_all_selected) {
+ // The user selected all the text and has not edited it. Use the url as the
+ // text so that if the scheme was stripped it's added back, and the url
+ // is unescaped (we escape parts of the url for display).
*text = UTF8ToWide(url->spec());
*write_url = true;
return;
« 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