| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |