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

Unified Diff: chrome/browser/component_updater/swiftshader_component_installer.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: chrome/browser/component_updater/swiftshader_component_installer.cc
diff --git a/chrome/browser/component_updater/swiftshader_component_installer.cc b/chrome/browser/component_updater/swiftshader_component_installer.cc
index 9aa42e0753ebe89e856267db382a6acbb6f6c3d8..12e8d8a2bb5e19fade6fb6406ab02a044d1dd9d0 100644
--- a/chrome/browser/component_updater/swiftshader_component_installer.cc
+++ b/chrome/browser/component_updater/swiftshader_component_installer.cc
@@ -72,8 +72,8 @@ bool GetLatestSwiftShaderDirectory(base::FilePath* result,
if (!version.IsValid())
continue;
if (version.CompareTo(*latest) > 0 &&
- file_util::PathExists(path.Append(kSwiftShaderEglName)) &&
- file_util::PathExists(path.Append(kSwiftShaderGlesName))) {
+ base::PathExists(path.Append(kSwiftShaderEglName)) &&
+ base::PathExists(path.Append(kSwiftShaderGlesName))) {
if (found && older_dirs)
older_dirs->push_back(*result);
*latest = version;
@@ -135,13 +135,13 @@ bool SwiftShaderComponentInstaller::Install(
return false;
if (current_version_.CompareTo(version) >= 0)
return false;
- if (!file_util::PathExists(unpack_path.Append(kSwiftShaderEglName)) ||
- !file_util::PathExists(unpack_path.Append(kSwiftShaderGlesName)))
+ if (!base::PathExists(unpack_path.Append(kSwiftShaderEglName)) ||
+ !base::PathExists(unpack_path.Append(kSwiftShaderGlesName)))
return false;
// Passed the basic tests. Time to install it.
base::FilePath path =
GetSwiftShaderBaseDirectory().AppendASCII(version.GetString());
- if (file_util::PathExists(path))
+ if (base::PathExists(path))
return false;
if (!base::Move(unpack_path, path))
return false;
@@ -208,7 +208,7 @@ void UpdateChecker::OnGpuInfoUpdate() {
void RegisterSwiftShaderPath(ComponentUpdateService* cus) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
base::FilePath path = GetSwiftShaderBaseDirectory();
- if (!file_util::PathExists(path)) {
+ if (!base::PathExists(path)) {
if (!file_util::CreateDirectory(path)) {
NOTREACHED() << "Could not create SwiftShader directory.";
return;

Powered by Google App Engine
This is Rietveld 408576698