| 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 #include "chrome/common/chrome_paths_internal.h" | 5 #include "chrome/common/chrome_paths_internal.h" |
| 6 | 6 |
| 7 #include "base/base_paths_android.h" |
| 8 #include "base/base_paths_posix.h" |
| 7 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 8 #include "base/logging.h" | 10 #include "base/logging.h" |
| 9 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 10 | 12 |
| 11 namespace chrome { | 13 namespace chrome { |
| 12 | 14 |
| 13 void GetUserCacheDirectory(const FilePath& profile_dir, FilePath* result) { | 15 void GetUserCacheDirectory(const FilePath& profile_dir, FilePath* result) { |
| 14 if (!PathService::Get(base::DIR_CACHE, result)) | 16 if (!PathService::Get(base::DIR_CACHE, result)) |
| 15 *result = profile_dir; | 17 *result = profile_dir; |
| 16 } | 18 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 41 bool GetUserPicturesDirectory(FilePath* result) { | 43 bool GetUserPicturesDirectory(FilePath* result) { |
| 42 NOTIMPLEMENTED(); | 44 NOTIMPLEMENTED(); |
| 43 return false; | 45 return false; |
| 44 } | 46 } |
| 45 | 47 |
| 46 bool GetUserVideosDirectory(FilePath* result) { | 48 bool GetUserVideosDirectory(FilePath* result) { |
| 47 NOTIMPLEMENTED(); | 49 NOTIMPLEMENTED(); |
| 48 return false; | 50 return false; |
| 49 } | 51 } |
| 50 | 52 |
| 51 bool GetUserDesktop(FilePath* result) { | |
| 52 NOTIMPLEMENTED() << "Android doesn't support GetUserDesktop"; | |
| 53 return false; | |
| 54 } | |
| 55 | |
| 56 bool ProcessNeedsProfileDir(const std::string& process_type) { | 53 bool ProcessNeedsProfileDir(const std::string& process_type) { |
| 57 return true; | 54 return true; |
| 58 } | 55 } |
| 59 | 56 |
| 60 } // namespace chrome | 57 } // namespace chrome |
| OLD | NEW |