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

Unified Diff: chrome/browser/plugin_service.cc

Issue 6246036: FilePath: Remove most of ToWStringHack, adding a LossyDisplayName() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bug link 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
« no previous file with comments | « chrome/browser/plugin_observer.cc ('k') | chrome/browser/printing/printing_layout_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_service.cc
diff --git a/chrome/browser/plugin_service.cc b/chrome/browser/plugin_service.cc
index a13aec822a8414d9138245d3ea1532971bdf66d0..148f65ed9ff74237e90d9441e11f8711790258aa 100644
--- a/chrome/browser/plugin_service.cc
+++ b/chrome/browser/plugin_service.cc
@@ -496,7 +496,7 @@ void PluginService::RegisterPepperPlugins() {
webkit::npapi::WebPluginInfo info;
info.path = plugins[i].path;
info.name = plugins[i].name.empty() ?
- WideToUTF16(plugins[i].path.BaseName().ToWStringHack()) :
+ plugins[i].path.BaseName().LossyDisplayName() :
ASCIIToUTF16(plugins[i].name);
info.desc = ASCIIToUTF16(plugins[i].description);
info.enabled = webkit::npapi::WebPluginInfo::USER_ENABLED_POLICY_UNMANAGED;
@@ -509,7 +509,7 @@ void PluginService::RegisterPepperPlugins() {
ASCIIToUTF16(plugins[i].type_descriptions),
&info.mime_types)) {
LOG(ERROR) << "Error parsing mime types for "
- << plugins[i].path.ToWStringHack();
+ << plugins[i].path.LossyDisplayName();
return;
}
« no previous file with comments | « chrome/browser/plugin_observer.cc ('k') | chrome/browser/printing/printing_layout_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698