OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Defines base::PathProviderAndroid which replaces base::PathProviderPosix for | 5 // Defines base::PathProviderAndroid which replaces base::PathProviderPosix for |
6 // Android in base/path_service.cc. | 6 // Android in base/path_service.cc. |
7 | 7 |
| 8 #include <limits.h> |
8 #include <unistd.h> | 9 #include <unistd.h> |
9 | 10 |
10 #include "base/android/jni_android.h" | 11 #include "base/android/jni_android.h" |
11 #include "base/android/path_utils.h" | 12 #include "base/android/path_utils.h" |
12 #include "base/base_paths.h" | 13 #include "base/base_paths.h" |
13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
14 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
16 #include "base/process/process_metrics.h" | 17 #include "base/process/process_metrics.h" |
17 | 18 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 return base::android::GetExternalStorageDirectory(result); | 52 return base::android::GetExternalStorageDirectory(result); |
52 default: | 53 default: |
53 // Note: the path system expects this function to override the default | 54 // Note: the path system expects this function to override the default |
54 // behavior. So no need to log an error if we don't support a given | 55 // behavior. So no need to log an error if we don't support a given |
55 // path. The system will just use the default. | 56 // path. The system will just use the default. |
56 return false; | 57 return false; |
57 } | 58 } |
58 } | 59 } |
59 | 60 |
60 } // namespace base | 61 } // namespace base |
OLD | NEW |