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

Unified Diff: chrome/browser/download/download_item.cc

Issue 6246036: FilePath: Remove most of ToWStringHack, adding a LossyDisplayName() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: retry Created 9 years, 11 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/download/download_item.cc
diff --git a/chrome/browser/download/download_item.cc b/chrome/browser/download/download_item.cc
index 620828b90c536bf57467ead14a67b7c248132926..eb8533788709b7615477fa0d11b026ef8987976b 100644
--- a/chrome/browser/download/download_item.cc
+++ b/chrome/browser/download/download_item.cc
@@ -486,7 +486,7 @@ bool DownloadItem::MatchesQuery(const string16& query) const {
if (url_formatted.find(query) != string16::npos)
return true;
- string16 path(l10n_util::ToLower(WideToUTF16(full_path().ToWStringHack())));
+ string16 path(l10n_util::ToLower(full_path().LossyDisplayName()));
if (path.find(query) != std::wstring::npos)
Mark Mentovai 2011/02/04 19:26:58 string16::find doesn’t seem like the right way to
evanm 2011/02/04 19:37:12 I guess for strict substring it's ok, because exte
Avi (use Gerrit) 2011/02/04 19:42:32 For strict substring, this is valid.
Mark Mentovai 2011/02/04 19:49:32 evanm wrote:
evanm 2011/02/04 19:58:50 Good point. Filed a bug, added a link.
return true;

Powered by Google App Engine
This is Rietveld 408576698