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.h" | 5 #include "chrome/common/chrome_paths.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/mac/bundle_locations.h" | 9 #include "base/mac/bundle_locations.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/sys_info.h" | 12 #include "base/sys_info.h" |
13 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
14 #include "base/version.h" | |
15 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
16 #include "chrome/common/chrome_paths_internal.h" | 15 #include "chrome/common/chrome_paths_internal.h" |
17 #include "chrome/common/widevine_cdm_constants.h" | 16 #include "chrome/common/widevine_cdm_constants.h" |
18 #include "ui/base/ui_base_paths.h" | 17 #include "ui/base/ui_base_paths.h" |
19 | 18 |
20 #if defined(OS_ANDROID) | 19 #if defined(OS_ANDROID) |
21 #include "base/android/path_utils.h" | 20 #include "base/android/path_utils.h" |
22 #endif | 21 #endif |
23 | 22 |
24 #if defined(OS_MACOSX) | 23 #if defined(OS_MACOSX) |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 return true; | 524 return true; |
526 } | 525 } |
527 | 526 |
528 // This cannot be done as a static initializer sadly since Visual Studio will | 527 // This cannot be done as a static initializer sadly since Visual Studio will |
529 // eliminate this object file if there is no direct entry point into it. | 528 // eliminate this object file if there is no direct entry point into it. |
530 void RegisterPathProvider() { | 529 void RegisterPathProvider() { |
531 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END); | 530 PathService::RegisterProvider(PathProvider, PATH_START, PATH_END); |
532 } | 531 } |
533 | 532 |
534 } // namespace chrome | 533 } // namespace chrome |
OLD | NEW |