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/files/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/mac/bundle_locations.h" | 10 #include "base/mac/bundle_locations.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/sys_info.h" | 13 #include "base/sys_info.h" |
14 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
15 #include "base/version.h" | 15 #include "base/version.h" |
| 16 #include "build/build_config.h" |
16 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
17 #include "chrome/common/chrome_paths_internal.h" | 18 #include "chrome/common/chrome_paths_internal.h" |
18 | 19 |
19 #if defined(OS_ANDROID) | 20 #if defined(OS_ANDROID) |
20 #include "base/android/path_utils.h" | 21 #include "base/android/path_utils.h" |
21 #include "base/base_paths_android.h" | 22 #include "base/base_paths_android.h" |
22 // ui/base must only be used on Android. See BUILD.gn for dependency info. | 23 // ui/base must only be used on Android. See BUILD.gn for dependency info. |
23 #include "ui/base/ui_base_paths.h" // nogncheck | 24 #include "ui/base/ui_base_paths.h" // nogncheck |
24 #endif | 25 #endif |
25 | 26 |
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 | 606 |
606 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) { | 607 void SetInvalidSpecifiedUserDataDir(const base::FilePath& user_data_dir) { |
607 g_invalid_specified_user_data_dir.Get() = user_data_dir; | 608 g_invalid_specified_user_data_dir.Get() = user_data_dir; |
608 } | 609 } |
609 | 610 |
610 const base::FilePath& GetInvalidSpecifiedUserDataDir() { | 611 const base::FilePath& GetInvalidSpecifiedUserDataDir() { |
611 return g_invalid_specified_user_data_dir.Get(); | 612 return g_invalid_specified_user_data_dir.Get(); |
612 } | 613 } |
613 | 614 |
614 } // namespace chrome | 615 } // namespace chrome |
OLD | NEW |