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

Unified Diff: chromeos/dbus/session_manager_client.cc

Issue 100573002: Move directory creation functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « chromeos/dbus/cros_disks_client.cc ('k') | cloud_print/gcp20/prototype/print_job_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/session_manager_client.cc
diff --git a/chromeos/dbus/session_manager_client.cc b/chromeos/dbus/session_manager_client.cc
index 441c693fb8cf3c4d86e6ca4ff7858ae5a03c1a44..7db7928b94371cdb3c790cbac283b1a5a765837c 100644
--- a/chromeos/dbus/session_manager_client.cc
+++ b/chromeos/dbus/session_manager_client.cc
@@ -628,7 +628,7 @@ class SessionManagerClientStubImpl : public SessionManagerClient {
static void StoreFileInBackground(const base::FilePath& path,
const std::string& data) {
const int size = static_cast<int>(data.size());
- if (!file_util::CreateDirectory(path.DirName()) ||
+ if (!base::CreateDirectory(path.DirName()) ||
file_util::WriteFile(path, data.data(), size) != size) {
LOG(WARNING) << "Failed to write policy key to " << path.value();
}
« no previous file with comments | « chromeos/dbus/cros_disks_client.cc ('k') | cloud_print/gcp20/prototype/print_job_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698