summaryrefslogtreecommitdiffstats
path: root/cloud_print
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-03 20:08:54 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-03 20:08:54 +0000
commit426d1c945bcb1a8479d92a7dd023c34cbbc7a261 (patch)
tree8b6d4ad435be865cc5eae1dacfc3e299436fb596 /cloud_print
parent425b55b976d5987b502d2e72e15befedbe2c9662 (diff)
downloadchromium_src-426d1c945bcb1a8479d92a7dd023c34cbbc7a261.zip
chromium_src-426d1c945bcb1a8479d92a7dd023c34cbbc7a261.tar.gz
chromium_src-426d1c945bcb1a8479d92a7dd023c34cbbc7a261.tar.bz2
Move directory creation functions to base namespace.
BUG= Review URL: https://codereview.chromium.org/100573002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238446 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print')
-rw-r--r--cloud_print/gcp20/prototype/print_job_handler.cc2
-rw-r--r--cloud_print/service/win/installer.cc2
-rw-r--r--cloud_print/service/win/service_listener.cc2
-rw-r--r--cloud_print/virtual_driver/win/port_monitor/port_monitor.cc2
-rw-r--r--cloud_print/virtual_driver/win/port_monitor/port_monitor_unittest.cc4
5 files changed, 6 insertions, 6 deletions
diff --git a/cloud_print/gcp20/prototype/print_job_handler.cc b/cloud_print/gcp20/prototype/print_job_handler.cc
index 2d46db9..2f968e4 100644
--- a/cloud_print/gcp20/prototype/print_job_handler.cc
+++ b/cloud_print/gcp20/prototype/print_job_handler.cc
@@ -216,7 +216,7 @@ bool PrintJobHandler::SavePrintJob(const std::string& content,
base::FilePath directory(kJobsPath);
if (!base::DirectoryExists(directory) &&
- !file_util::CreateDirectory(directory)) {
+ !base::CreateDirectory(directory)) {
return false;
}
diff --git a/cloud_print/service/win/installer.cc b/cloud_print/service/win/installer.cc
index 9a2602d..a08b1445 100644
--- a/cloud_print/service/win/installer.cc
+++ b/cloud_print/service/win/installer.cc
@@ -38,7 +38,7 @@ void CreateShortcut(int dir_key, bool with_subdir,
base::FilePath path = GetShortcutPath(dir_key, with_subdir);
if (path.empty())
return;
- file_util::CreateDirectory(path.DirName());
+ base::CreateDirectory(path.DirName());
base::win::ShortcutProperties properties;
base::FilePath exe_path;
diff --git a/cloud_print/service/win/service_listener.cc b/cloud_print/service/win/service_listener.cc
index e0f9112..53622a8 100644
--- a/cloud_print/service/win/service_listener.cc
+++ b/cloud_print/service/win/service_listener.cc
@@ -37,7 +37,7 @@ std::string GetEnvironment(const base::FilePath& user_data_dir) {
GetCurrentUserName());
environment.SetString(SetupListener::kChromePathJsonValueName,
chrome_launcher_support::GetAnyChromePath().value());
- if (file_util::CreateDirectory(user_data_dir)) {
+ if (base::CreateDirectory(user_data_dir)) {
base::FilePath temp_file;
if (base::CreateTemporaryFileInDir(user_data_dir, &temp_file)) {
DCHECK(base::PathExists(temp_file));
diff --git a/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc b/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
index cec4aac..4432404 100644
--- a/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
+++ b/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
@@ -428,7 +428,7 @@ BOOL WINAPI Monitor2StartDocPort(HANDLE port_handle,
if (app_data_dir.empty())
return FALSE;
DeleteLeakedFiles(app_data_dir);
- if (!file_util::CreateDirectory(app_data_dir) ||
+ if (!base::CreateDirectory(app_data_dir) ||
!base::CreateTemporaryFileInDir(app_data_dir, &file_path)) {
LOG(ERROR) << "Can't create temporary file in " << app_data_dir.value();
return FALSE;
diff --git a/cloud_print/virtual_driver/win/port_monitor/port_monitor_unittest.cc b/cloud_print/virtual_driver/win/port_monitor/port_monitor_unittest.cc
index 0e32027..335503a 100644
--- a/cloud_print/virtual_driver/win/port_monitor/port_monitor_unittest.cc
+++ b/cloud_print/virtual_driver/win/port_monitor/port_monitor_unittest.cc
@@ -65,9 +65,9 @@ class PortMonitorTest : public testing::Test {
base::FilePath path;
PathService::Get(base::DIR_LOCAL_APP_DATA, &path);
base::FilePath main_path = path.Append(kChromeExePath);
- ASSERT_TRUE(file_util::CreateDirectory(main_path));
+ ASSERT_TRUE(base::CreateDirectory(main_path));
base::FilePath alternate_path = path.Append(kAlternateChromeExePath);
- ASSERT_TRUE(file_util::CreateDirectory(alternate_path));
+ ASSERT_TRUE(base::CreateDirectory(alternate_path));
}
virtual void DeleteTempChromeExeFiles() {