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

Unified Diff: chrome/app/client_util.cc

Issue 12315071: Revert 184352 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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/app/breakpad_win.cc ('k') | chrome/browser/about_flags_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/client_util.cc
===================================================================
--- chrome/app/client_util.cc (revision 184354)
+++ chrome/app/client_util.cc (working copy)
@@ -361,7 +361,7 @@
const CommandLine& cmd_line = *CommandLine::ForCurrentProcess();
if (cmd_line.HasSwitch(switches::kChromeVersion)) {
version_string = cmd_line.GetSwitchValueNative(switches::kChromeVersion);
- version = Version(base::WideToASCII(version_string));
+ version = Version(WideToASCII(version_string));
if (!version.IsValid()) {
// If a bogus command line flag was given, then abort.
@@ -377,7 +377,7 @@
FileVersionInfo::CreateFileVersionInfoForCurrentModule());
if (file_version_info.get()) {
version_string = file_version_info->file_version();
- version = Version(base::WideToASCII(version_string));
+ version = Version(WideToASCII(version_string));
}
}
@@ -387,9 +387,9 @@
// If no version in the current module, then look in the environment.
if (!version.IsValid()) {
- if (EnvQueryStr(base::ASCIIToWide(chrome::kChromeVersionEnvVar).c_str(),
+ if (EnvQueryStr(ASCIIToWide(chrome::kChromeVersionEnvVar).c_str(),
&version_string)) {
- version = Version(base::WideToASCII(version_string));
+ version = Version(WideToASCII(version_string));
LOG_IF(ERROR, !version.IsValid()) << "Invalid environment version: "
<< version_string;
}
@@ -428,7 +428,7 @@
return chrome::RESULT_CODE_MISSING_DATA;
scoped_ptr<base::Environment> env(base::Environment::Create());
- env->SetVar(chrome::kChromeVersionEnvVar, base::WideToUTF8(version));
+ env->SetVar(chrome::kChromeVersionEnvVar, WideToUTF8(version));
// TODO(erikwright): Remove this when http://crbug.com/174953 is fixed and
// widely deployed.
env->UnSetVar(env_vars::kGoogleUpdateIsMachineEnvVar);
« no previous file with comments | « chrome/app/breakpad_win.cc ('k') | chrome/browser/about_flags_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698