| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/base_paths.h" | 5 #include "base/base_paths.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | |
| 8 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 | 10 |
| 11 namespace base { | 11 namespace base { |
| 12 | 12 |
| 13 bool PathProvider(int key, FilePath* result) { | 13 bool PathProvider(int key, FilePath* result) { |
| 14 // NOTE: DIR_CURRENT is a special case in PathService::Get | 14 // NOTE: DIR_CURRENT is a special case in PathService::Get |
| 15 | 15 |
| 16 switch (key) { | 16 switch (key) { |
| 17 case DIR_EXE: | 17 case DIR_EXE: |
| 18 PathService::Get(FILE_EXE, result); | 18 PathService::Get(FILE_EXE, result); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 37 *result = result->Append(FILE_PATH_LITERAL("data")); | 37 *result = result->Append(FILE_PATH_LITERAL("data")); |
| 38 if (!PathExists(*result)) // We don't want to create this. | 38 if (!PathExists(*result)) // We don't want to create this. |
| 39 return false; | 39 return false; |
| 40 return true; | 40 return true; |
| 41 default: | 41 default: |
| 42 return false; | 42 return false; |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 | 45 |
| 46 } // namespace base | 46 } // namespace base |
| OLD | NEW |