summaryrefslogtreecommitdiffstats
path: root/cloud_print/service
diff options
context:
space:
mode:
authorvitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-18 04:42:06 +0000
committervitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-18 04:42:06 +0000
commitfb9e962675b7b5d7cb20f1a3bc1bb54e0f052f84 (patch)
tree71b23452b4e787517a0c237c6d351dbcbf6ef0fc /cloud_print/service
parent9e2d2d1f545118012f7ae445fefee2417d41d9ea (diff)
downloadchromium_src-fb9e962675b7b5d7cb20f1a3bc1bb54e0f052f84.zip
chromium_src-fb9e962675b7b5d7cb20f1a3bc1bb54e0f052f84.tar.gz
chromium_src-fb9e962675b7b5d7cb20f1a3bc1bb54e0f052f84.tar.bz2
Create dir if it does not existst.
Review URL: https://chromiumcodereview.appspot.com/13991009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194762 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print/service')
-rw-r--r--cloud_print/service/win/service_listener.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloud_print/service/win/service_listener.cc b/cloud_print/service/win/service_listener.cc
index fdc825c..83200c8 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::DirectoryExists(user_data_dir)) {
+ if (file_util::CreateDirectory(user_data_dir)) {
base::FilePath temp_file;
if (file_util::CreateTemporaryFileInDir(user_data_dir, &temp_file)) {
DCHECK(file_util::PathExists(temp_file));