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

Unified Diff: chrome/browser/component_updater/pnacl/pnacl_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/pnacl/pnacl_component_installer.cc
diff --git a/chrome/browser/component_updater/pnacl/pnacl_component_installer.cc b/chrome/browser/component_updater/pnacl/pnacl_component_installer.cc
index 44b66f310dae0b8a4b43f720c50b1a3ec5629e34..e0ad6c369c8c7b1eaca2b934fdd61dd01b4a33b2 100644
--- a/chrome/browser/component_updater/pnacl/pnacl_component_installer.cc
+++ b/chrome/browser/component_updater/pnacl/pnacl_component_installer.cc
@@ -122,7 +122,7 @@ base::DictionaryValue* ReadJSONManifest(
base::DictionaryValue* ReadPnaclManifest(const base::FilePath& unpack_path) {
base::FilePath manifest_path = GetPlatformDir(unpack_path).AppendASCII(
"pnacl_public_pnacl_json");
- if (!file_util::PathExists(manifest_path))
+ if (!base::PathExists(manifest_path))
return NULL;
return ReadJSONManifest(manifest_path);
}
@@ -132,7 +132,7 @@ base::DictionaryValue* ReadComponentManifest(
const base::FilePath& unpack_path) {
base::FilePath manifest_path = unpack_path.Append(
FILE_PATH_LITERAL("manifest.json"));
- if (!file_util::PathExists(manifest_path))
+ if (!base::PathExists(manifest_path))
return NULL;
return ReadJSONManifest(manifest_path);
}
@@ -265,7 +265,7 @@ bool PnaclComponentInstaller::Install(const base::DictionaryValue& manifest,
// Passed the basic tests. Time to install it.
base::FilePath path = GetPnaclBaseDirectory().AppendASCII(
version.GetString());
- if (file_util::PathExists(path)) {
+ if (base::PathExists(path)) {
LOG(WARNING) << "Target path already exists, not installing.";
NotifyInstallError();
return false;
@@ -372,7 +372,7 @@ void FinishPnaclUpdateRegistration(const Version& current_version,
void StartPnaclUpdateRegistration(PnaclComponentInstaller* pci) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
base::FilePath path = pci->GetPnaclBaseDirectory();
- if (!file_util::PathExists(path)) {
+ if (!base::PathExists(path)) {
if (!file_util::CreateDirectory(path)) {
NOTREACHED() << "Could not create base Pnacl directory.";
return;

Powered by Google App Engine
This is Rietveld 408576698