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

Unified Diff: chrome/test/mini_installer_test/mini_installer_test_util.cc

Issue 271099: Re-try r29078: Remove some deprecated file_util wstring functions. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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/test/mini_installer_test/mini_installer_test_util.cc
===================================================================
--- chrome/test/mini_installer_test/mini_installer_test_util.cc (revision 29088)
+++ chrome/test/mini_installer_test/mini_installer_test_util.cc (working copy)
@@ -117,14 +117,14 @@
++builds_list_size;
} else {
file_util::AppendToPath(path, exe_list.at(0).name_.c_str());
- if (!file_util::PathExists(*path)) {
+ if (!file_util::PathExists(FilePath::FromWStringHack(*path))) {
++builds_list_size;
} else {
break;
}
}
}
- return (file_util::PathExists(path->c_str()));
+ return file_util::PathExists(FilePath::FromWStringHack(*path));
}
// This method will get the latest installer filename from the directory.
@@ -202,7 +202,7 @@
&directory_list))
return false;
file_util::AppendToPath(previous, directory_list.at(0).name_);
- return (file_util::PathExists(previous->c_str()));
+ return file_util::PathExists(FilePath::FromWStringHack(*previous));
}
bool MiniInstallerTestUtil::GetStandaloneInstallerFileName(
@@ -210,9 +210,9 @@
std::wstring standalone_installer(
mini_installer_constants::kChromeStandAloneInstallerLocation);
standalone_installer.append(L"*.exe");
- return (GetLatestFile(standalone_installer.c_str(),
- mini_installer_constants::kUntaggedInstallerPattern,
- file_name));
+ return GetLatestFile(standalone_installer.c_str(),
+ mini_installer_constants::kUntaggedInstallerPattern,
+ file_name);
}
bool MiniInstallerTestUtil::GetStandaloneVersion(
« no previous file with comments | « chrome/test/mini_installer_test/chrome_mini_installer.cc ('k') | chrome/test/mini_installer_test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698