OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/common/cast_paths.h" | 5 #include "chromecast/common/cast_paths.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/file_util.h" | |
9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 | 12 |
13 namespace chromecast { | 13 namespace chromecast { |
14 | 14 |
15 bool PathProvider(int key, base::FilePath* result) { | 15 bool PathProvider(int key, base::FilePath* result) { |
16 switch (key) { | 16 switch (key) { |
17 case DIR_CAST_HOME: { | 17 case DIR_CAST_HOME: { |
18 base::FilePath home = base::GetHomeDir(); | 18 base::FilePath home = base::GetHomeDir(); |
19 #if defined(ARCH_CPU_ARMEL) | 19 #if defined(ARCH_CPU_ARMEL) |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 } | 52 } |
53 return false; | 53 return false; |
54 } | 54 } |
55 | 55 |
56 void RegisterPathProvider() { | 56 void RegisterPathProvider() { |
57 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END); | 57 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END); |
58 } | 58 } |
59 | 59 |
60 } // namespace chromecast | 60 } // namespace chromecast |
OLD | NEW |