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/browser/profiles/profile_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 #include "content/public/browser/user_metrics.h" | 91 #include "content/public/browser/user_metrics.h" |
92 #include "content/public/common/content_constants.h" | 92 #include "content/public/common/content_constants.h" |
93 #include "grit/chromium_strings.h" | 93 #include "grit/chromium_strings.h" |
94 #include "grit/generated_resources.h" | 94 #include "grit/generated_resources.h" |
95 #include "ui/base/l10n/l10n_util.h" | 95 #include "ui/base/l10n/l10n_util.h" |
96 | 96 |
97 #if defined(ENABLE_CONFIGURATION_POLICY) | 97 #if defined(ENABLE_CONFIGURATION_POLICY) |
98 #include "chrome/browser/policy/browser_policy_connector.h" | 98 #include "chrome/browser/policy/browser_policy_connector.h" |
99 #include "chrome/browser/policy/managed_mode_policy_provider.h" | 99 #include "chrome/browser/policy/managed_mode_policy_provider.h" |
100 #if !defined(OS_CHROMEOS) | 100 #if !defined(OS_CHROMEOS) |
101 #include "chrome/browser/policy/user_cloud_policy_manager.h" | 101 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" |
102 #include "chrome/browser/policy/user_cloud_policy_manager_factory.h" | 102 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
103 #endif | 103 #endif |
104 #else | 104 #else |
105 #include "chrome/browser/policy/policy_service_stub.h" | 105 #include "chrome/browser/policy/policy_service_stub.h" |
106 #endif // defined(ENABLE_CONFIGURATION_POLICY) | 106 #endif // defined(ENABLE_CONFIGURATION_POLICY) |
107 | 107 |
108 #if defined(OS_WIN) | 108 #if defined(OS_WIN) |
109 #include "chrome/installer/util/install_util.h" | 109 #include "chrome/installer/util/install_util.h" |
110 #endif | 110 #endif |
111 | 111 |
112 #if defined(OS_CHROMEOS) | 112 #if defined(OS_CHROMEOS) |
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 base::FilePath* cache_path, | 1163 base::FilePath* cache_path, |
1164 int* max_size) { | 1164 int* max_size) { |
1165 DCHECK(cache_path); | 1165 DCHECK(cache_path); |
1166 DCHECK(max_size); | 1166 DCHECK(max_size); |
1167 base::FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); | 1167 base::FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); |
1168 if (!path.empty()) | 1168 if (!path.empty()) |
1169 *cache_path = path; | 1169 *cache_path = path; |
1170 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : | 1170 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : |
1171 prefs_->GetInteger(prefs::kDiskCacheSize); | 1171 prefs_->GetInteger(prefs::kDiskCacheSize); |
1172 } | 1172 } |
OLD | NEW |