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

Unified Diff: cloud_print/service/win/service_listener.cc

Issue 13991009: Create dir if it does not existst. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/service/win/service_listener.cc
diff --git a/cloud_print/service/win/service_listener.cc b/cloud_print/service/win/service_listener.cc
index fdc825c1a29ece21570a8d6b64c1105807e3b4ba..83200c8d451edd8c334fd8a75017771d6a9f31d8 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));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698