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

Unified Diff: chrome/test/webdriver/webdriver_automation.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/test/webdriver/commands/webelement_commands.cc ('k') | chrome/tools/crash_service/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/webdriver_automation.cc
diff --git a/chrome/test/webdriver/webdriver_automation.cc b/chrome/test/webdriver/webdriver_automation.cc
index 418e0b2ac749c64cd68573fd7888785e150adec2..1fa60ab7d199573e169289edef6e8ef5b85fabff 100644
--- a/chrome/test/webdriver/webdriver_automation.cc
+++ b/chrome/test/webdriver/webdriver_automation.cc
@@ -54,7 +54,7 @@ bool CheckForChromeExe(const std::vector<base::FilePath>& browser_exes,
for (size_t i = 0; i < browser_exes.size(); ++i) {
for (size_t j = 0; j < locations.size(); ++j) {
base::FilePath path = locations[j].Append(browser_exes[i]);
- if (file_util::PathExists(path)) {
+ if (base::PathExists(path)) {
*browser_exe = path;
return true;
}
@@ -97,7 +97,7 @@ bool GetDefaultChromeExe(base::FilePath* browser_exe) {
if (PathService::Get(base::DIR_MODULE, &module_dir)) {
for (size_t j = 0; j < browser_exes.size(); ++j) {
base::FilePath path = module_dir.Append(browser_exes[j]);
- if (file_util::PathExists(path)) {
+ if (base::PathExists(path)) {
*browser_exe = path;
return true;
}
@@ -411,7 +411,7 @@ void Automation::Init(
}
command.SetProgram(browser_exe);
}
- if (!file_util::PathExists(command.GetProgram())) {
+ if (!base::PathExists(command.GetProgram())) {
std::string message = base::StringPrintf(
"Could not find Chrome binary at: %" PRFilePath,
command.GetProgram().value().c_str());
« no previous file with comments | « chrome/test/webdriver/commands/webelement_commands.cc ('k') | chrome/tools/crash_service/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698