| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/filesystem/file_system_app.h" | 5 #include "components/filesystem/file_system_app.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "mojo/shell/public/cpp/connection.h" | 10 #include "services/shell/public/cpp/connection.h" |
| 11 #include "mojo/shell/public/cpp/connector.h" | 11 #include "services/shell/public/cpp/connector.h" |
| 12 | 12 |
| 13 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
| 14 #include "base/base_paths_win.h" | 14 #include "base/base_paths_win.h" |
| 15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #elif defined(OS_ANDROID) | 17 #elif defined(OS_ANDROID) |
| 18 #include "base/base_paths_android.h" | 18 #include "base/base_paths_android.h" |
| 19 #include "base/path_service.h" | 19 #include "base/path_service.h" |
| 20 #elif defined(OS_LINUX) | 20 #elif defined(OS_LINUX) |
| 21 #include "base/environment.h" | 21 #include "base/environment.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 path = path.Append(FILE_PATH_LITERAL("filesystem")); | 80 path = path.Append(FILE_PATH_LITERAL("filesystem")); |
| 81 } | 81 } |
| 82 | 82 |
| 83 if (!base::PathExists(path)) | 83 if (!base::PathExists(path)) |
| 84 base::CreateDirectory(path); | 84 base::CreateDirectory(path); |
| 85 | 85 |
| 86 return path; | 86 return path; |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace filesystem | 89 } // namespace filesystem |
| OLD | NEW |