| 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 "ui/base/ui_base_paths.h" | 5 #include "ui/base/ui_base_paths.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.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/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 | 12 |
| 13 #if defined(OS_ANDROID) | 13 #if defined(OS_ANDROID) |
| 14 #include "base/android/path_utils.h" | 14 #include "base/android/path_utils.h" |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 | 18 |
| 19 bool PathProvider(int key, base::FilePath* result) { | 19 bool PathProvider(int key, base::FilePath* result) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 return true; | 76 return true; |
| 77 } | 77 } |
| 78 | 78 |
| 79 // This cannot be done as a static initializer sadly since Visual Studio will | 79 // This cannot be done as a static initializer sadly since Visual Studio will |
| 80 // eliminate this object file if there is no direct entry point into it. | 80 // eliminate this object file if there is no direct entry point into it. |
| 81 void RegisterPathProvider() { | 81 void RegisterPathProvider() { |
| 82 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END); | 82 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END); |
| 83 } | 83 } |
| 84 | 84 |
| 85 } // namespace ui | 85 } // namespace ui |
| OLD | NEW |