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

Side by Side Diff: mojo/shell/storage.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ipc/unix_domain_socket_util.cc ('k') | net/base/directory_lister_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/shell/storage.h" 5 #include "mojo/shell/storage.h"
6 6
7 #include "base/environment.h" 7 #include "base/environment.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 24 matching lines...) Expand all
35 CHECK(PathService::Get(base::DIR_APP_DATA, &profile_path_)); 35 CHECK(PathService::Get(base::DIR_APP_DATA, &profile_path_));
36 profile_path_ = profile_path_.Append("Chromium Mojo Shell"); 36 profile_path_ = profile_path_.Append("Chromium Mojo Shell");
37 #elif defined(OS_ANDROID) 37 #elif defined(OS_ANDROID)
38 CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &profile_path_)); 38 CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &profile_path_));
39 profile_path_ = profile_path_.Append(FILE_PATH_LITERAL("mojo_shell")); 39 profile_path_ = profile_path_.Append(FILE_PATH_LITERAL("mojo_shell"));
40 #else 40 #else
41 NOTIMPLEMENTED(); 41 NOTIMPLEMENTED();
42 #endif 42 #endif
43 43
44 if (!base::PathExists(profile_path_)) 44 if (!base::PathExists(profile_path_))
45 file_util::CreateDirectory(profile_path_); 45 base::CreateDirectory(profile_path_);
46 } 46 }
47 47
48 Storage::~Storage() { 48 Storage::~Storage() {
49 } 49 }
50 50
51 } // namespace shell 51 } // namespace shell
52 } // namespace mojo 52 } // namespace mojo
OLDNEW
« no previous file with comments | « ipc/unix_domain_socket_util.cc ('k') | net/base/directory_lister_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698