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

Unified Diff: chrome/browser/safe_browsing/filter_false_positive_perftest.cc

Issue 6246036: FilePath: Remove most of ToWStringHack, adding a LossyDisplayName() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/safe_browsing/filter_false_positive_perftest.cc
diff --git a/chrome/browser/safe_browsing/filter_false_positive_perftest.cc b/chrome/browser/safe_browsing/filter_false_positive_perftest.cc
index 34c4512fb5d820442d7dcaeeab7687a8f1341ba3..7e205f39baf088f0b1937c4a71b8900da34ecce5 100644
--- a/chrome/browser/safe_browsing/filter_false_positive_perftest.cc
+++ b/chrome/browser/safe_browsing/filter_false_positive_perftest.cc
@@ -239,7 +239,13 @@ void CalculateBloomFilterFalsePositives(
// Read in data file line at a time.
FilePath url_file = data_dir.Append(FILE_PATH_LITERAL("urls"));
- std::ifstream url_stream(WideToASCII(url_file.ToWStringHack()).c_str());
+ std::ifstream url_stream(
+#if defined(OS_WIN)
+ WideToASCII(url_file.value())
Mark Mentovai 2011/02/01 22:54:55 This is substantially uglier than what it replaces
+#else
+ url_file.value()
+#endif
+ .c_str());
// Keep track of stats
int hits = 0;

Powered by Google App Engine
This is Rietveld 408576698