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

Unified Diff: chrome/browser/extensions/extension_service.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/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 51b654a6732c7bc97581d109927f6b5536329a02..2e74293775ff051f4de727faa0c235d82255ea67 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -1892,8 +1892,7 @@ void ExtensionService::ReportExtensionLoadError(
Source<Profile>(profile_),
Details<const std::string>(&error));
- // TODO(port): note that this isn't guaranteed to work properly on Linux.
- std::string path_str = WideToUTF8(extension_path.ToWStringHack());
+ std::string path_str = UTF16ToUTF8(extension_path.LossyDisplayName());
Mark Mentovai 2011/02/01 22:42:44 16To8(LossyDisplayName) is frustrating. I’m also
Mark Mentovai 2011/02/01 22:54:55 16To8(LossyDisplayName) is frustrating. On the Mac
std::string message = base::StringPrintf(
"Could not load extension from '%s'. %s",
path_str.c_str(), error.c_str());

Powered by Google App Engine
This is Rietveld 408576698