| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 #include "content/public/browser/user_metrics.h" | 89 #include "content/public/browser/user_metrics.h" |
| 90 #include "content/public/common/content_constants.h" | 90 #include "content/public/common/content_constants.h" |
| 91 #include "grit/chromium_strings.h" | 91 #include "grit/chromium_strings.h" |
| 92 #include "grit/generated_resources.h" | 92 #include "grit/generated_resources.h" |
| 93 #include "ui/base/l10n/l10n_util.h" | 93 #include "ui/base/l10n/l10n_util.h" |
| 94 | 94 |
| 95 #if defined(ENABLE_CONFIGURATION_POLICY) | 95 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 96 #include "chrome/browser/policy/browser_policy_connector.h" | 96 #include "chrome/browser/policy/browser_policy_connector.h" |
| 97 #include "chrome/browser/policy/managed_mode_policy_provider.h" | 97 #include "chrome/browser/policy/managed_mode_policy_provider.h" |
| 98 #if !defined(OS_CHROMEOS) | 98 #if !defined(OS_CHROMEOS) |
| 99 #include "chrome/browser/policy/user_cloud_policy_manager.h" | 99 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" |
| 100 #include "chrome/browser/policy/user_cloud_policy_manager_factory.h" | 100 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
| 101 #endif | 101 #endif |
| 102 #else | 102 #else |
| 103 #include "chrome/browser/policy/policy_service_stub.h" | 103 #include "chrome/browser/policy/policy_service_stub.h" |
| 104 #endif // defined(ENABLE_CONFIGURATION_POLICY) | 104 #endif // defined(ENABLE_CONFIGURATION_POLICY) |
| 105 | 105 |
| 106 #if defined(OS_WIN) | 106 #if defined(OS_WIN) |
| 107 #include "chrome/installer/util/install_util.h" | 107 #include "chrome/installer/util/install_util.h" |
| 108 #endif | 108 #endif |
| 109 | 109 |
| 110 #if defined(OS_CHROMEOS) | 110 #if defined(OS_CHROMEOS) |
| (...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 FilePath* cache_path, | 1172 FilePath* cache_path, |
| 1173 int* max_size) { | 1173 int* max_size) { |
| 1174 DCHECK(cache_path); | 1174 DCHECK(cache_path); |
| 1175 DCHECK(max_size); | 1175 DCHECK(max_size); |
| 1176 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); | 1176 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); |
| 1177 if (!path.empty()) | 1177 if (!path.empty()) |
| 1178 *cache_path = path; | 1178 *cache_path = path; |
| 1179 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : | 1179 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : |
| 1180 prefs_->GetInteger(prefs::kDiskCacheSize); | 1180 prefs_->GetInteger(prefs::kDiskCacheSize); |
| 1181 } | 1181 } |
| OLD | NEW |