summaryrefslogtreecommitdiffstats
path: root/chrome/browser/diagnostics
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-04 20:41:33 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-04 20:41:33 +0000
commit8a205c0f534bf8e5f17a531182dee38aaacd46e6 (patch)
tree1b1bab965f71658393dccdda1590d59711689962 /chrome/browser/diagnostics
parent58023bea8fa444c4ac08c12c825dcc79b5954abe (diff)
downloadchromium_src-8a205c0f534bf8e5f17a531182dee38aaacd46e6.zip
chromium_src-8a205c0f534bf8e5f17a531182dee38aaacd46e6.tar.gz
chromium_src-8a205c0f534bf8e5f17a531182dee38aaacd46e6.tar.bz2
FilePath: Remove much of ToWStringHack, adding a LossyDisplayName()
The reason we don't want a free conversion between FilePaths and Unicode is that it can be lossy. But when displaying a string to the user, we're ok if it's lossy when we have no other option. This change introduces a LossyDisplayName() method that returns a string16, and converts many of the users of ToWStringHack to use it. BUG=69467 Review URL: http://codereview.chromium.org/6246036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73840 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/diagnostics')
-rw-r--r--chrome/browser/diagnostics/recon_diagnostics.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/diagnostics/recon_diagnostics.cc b/chrome/browser/diagnostics/recon_diagnostics.cc
index ac0548b..d8f9526 100644
--- a/chrome/browser/diagnostics/recon_diagnostics.cc
+++ b/chrome/browser/diagnostics/recon_diagnostics.cc
@@ -145,8 +145,7 @@ class InstallTypeTest : public DiagnosticTest {
RecordFailure(ASCIIToUTF16("Path provider failure"));
return false;
}
- user_level_ = InstallUtil::IsPerUserInstall(
- chrome_exe.ToWStringHack().c_str());
+ user_level_ = InstallUtil::IsPerUserInstall(chrome_exe.value().c_str());
const char* type = user_level_ ? "User Level" : "System Level";
string16 install_type(ASCIIToUTF16(type));
#else