Index: chrome/browser/ui/webui/version_handler.cc |
diff --git a/chrome/browser/ui/webui/version_handler.cc b/chrome/browser/ui/webui/version_handler.cc |
index 6dc3bdb11f2d01e08b2d48f69832f1f2bce4a01c..733a53b60c527badcb7465b3336a0645b1283d28 100644 |
--- a/chrome/browser/ui/webui/version_handler.cc |
+++ b/chrome/browser/ui/webui/version_handler.cc |
@@ -28,16 +28,16 @@ void GetFilePaths(const base::FilePath& profile_path, |
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::FILE)); |
base::FilePath executable_path = |
- CommandLine::ForCurrentProcess()->GetProgram(); |
- if (file_util::AbsolutePath(&executable_path)) { |
+ CommandLine::ForCurrentProcess()->GetProgram().AsAbsolute(); |
+ if (!executable_path.empty()) { |
*exec_path_out = executable_path.LossyDisplayName(); |
} else { |
*exec_path_out = |
l10n_util::GetStringUTF16(IDS_ABOUT_VERSION_PATH_NOTFOUND); |
} |
- base::FilePath profile_path_copy(profile_path); |
- if (!profile_path.empty() && file_util::AbsolutePath(&profile_path_copy)) { |
+ base::FilePath profile_path_copy(profile_path.AsAbsolute()); |
+ if (!profile_path.empty() && !profile_path_copy.empty()) { |
*profile_path_out = profile_path.LossyDisplayName(); |
} else { |
*profile_path_out = |