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

Unified Diff: cloud_print/virtual_driver/win/install/setup.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
Index: cloud_print/virtual_driver/win/install/setup.cc
diff --git a/cloud_print/virtual_driver/win/install/setup.cc b/cloud_print/virtual_driver/win/install/setup.cc
index 85591ee5d1f5e4ffa37178920776af3dffcf5657..e5a249e0d8c7caf7fecd2cf97ebe2778549347a5 100644
--- a/cloud_print/virtual_driver/win/install/setup.cc
+++ b/cloud_print/virtual_driver/win/install/setup.cc
@@ -116,7 +116,7 @@ HRESULT RegisterPortMonitor(bool install, const base::FilePath& install_path) {
source_path.value() << " to " << target_path.value();
return GetLastHResult();
}
- } else if (!file_util::PathExists(target_path)) {
+ } else if (!base::PathExists(target_path)) {
// Already removed. Just "succeed" silently.
return S_OK;
}
@@ -237,9 +237,9 @@ void ReadyDriverDependencies(const base::FilePath& destination) {
driver_cache_path = driver_cache_path.Append(L"Driver Cache\\i386");
for (size_t i = 0; i < arraysize(kDependencyList); ++i) {
base::FilePath dst_path = destination.Append(kDependencyList[i]);
- if (!file_util::PathExists(dst_path)) {
+ if (!base::PathExists(dst_path)) {
base::FilePath src_path = driver_cache_path.Append(kDependencyList[i]);
- if (!file_util::PathExists(src_path))
+ if (!base::PathExists(src_path))
src_path = GetSystemPath(kDependencyList[i]);
base::CopyFile(src_path, dst_path);
}
@@ -257,7 +257,7 @@ HRESULT InstallDriver(const base::FilePath& install_path) {
// Add all files. AddPrinterDriverEx will removes unnecessary.
for (size_t i = 0; i < arraysize(kDependencyList); ++i) {
base::FilePath file_path = temp_path.path().Append(kDependencyList[i]);
- if (file_util::PathExists(file_path))
+ if (base::PathExists(file_path))
dependent_array.push_back(file_path.value());
else
LOG(WARNING) << "File is missing: " << file_path.BaseName().value();
@@ -269,7 +269,7 @@ HRESULT InstallDriver(const base::FilePath& install_path) {
base::FilePath ui_path = temp_path.path().Append(kUiDriverName);
base::FilePath ui_help_path = temp_path.path().Append(kHelpName);
- if (!file_util::PathExists(xps_path)) {
+ if (!base::PathExists(xps_path)) {
SetGoogleUpdateError(kGoogleUpdateProductId,
LoadLocalString(IDS_ERROR_NO_XPS));
return HRESULT_FROM_WIN32(ERROR_BAD_DRIVER);
« no previous file with comments | « cloud_print/service/win/service_listener.cc ('k') | cloud_print/virtual_driver/win/port_monitor/port_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698