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

Unified Diff: webkit/database/database_tracker.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: webkit/database/database_tracker.cc
diff --git a/webkit/database/database_tracker.cc b/webkit/database/database_tracker.cc
index 46e9dc112d16de98ead65a132c1c0139d2d91294..cdb950321303b23ae927d72d4b67b9e90869b6e3 100644
--- a/webkit/database/database_tracker.cc
+++ b/webkit/database/database_tracker.cc
@@ -719,9 +719,10 @@ void DatabaseTracker::ClearLocalState(const FilePath& profile_path) {
for (FilePath file_path = file_enumerator.Next(); !file_path.empty();
file_path = file_enumerator.Next()) {
if (file_path.BaseName() != FilePath(kTrackerDatabaseFileName)) {
- if (!StartsWith(file_path.BaseName().ToWStringHack(),
- ASCIIToWide(kExtensionOriginIdentifierPrefix), true))
+ if (!StartsWith(file_path.BaseName().LossyDisplayName(),
+ ASCIIToUTF16(kExtensionOriginIdentifierPrefix), true)) {
Avi (use Gerrit) 2011/02/01 22:46:25 Another one I'm not thrilled with.
file_util::Delete(file_path, true);
+ }
}
}
}

Powered by Google App Engine
This is Rietveld 408576698