OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/policy/cloud/user_cloud_policy_invalidator_factory.h" | 5 #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h" |
6 | 6 |
| 7 #include "build/build_config.h" |
7 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" | 8 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" |
8 #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator.h" | 9 #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator.h" |
9 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
10 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 11 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
11 #if defined(OS_CHROMEOS) | 12 #if defined(OS_CHROMEOS) |
12 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" | 13 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" |
13 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" | 14 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" |
14 #else | 15 #else |
15 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" | 16 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
16 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" | 17 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Must be automatically created to enable user policy invalidations. | 60 // Must be automatically created to enable user policy invalidations. |
60 return true; | 61 return true; |
61 } | 62 } |
62 | 63 |
63 bool UserCloudPolicyInvalidatorFactory::ServiceIsNULLWhileTesting() const { | 64 bool UserCloudPolicyInvalidatorFactory::ServiceIsNULLWhileTesting() const { |
64 // Not used in tests. | 65 // Not used in tests. |
65 return true; | 66 return true; |
66 } | 67 } |
67 | 68 |
68 } // namespace policy | 69 } // namespace policy |
OLD | NEW |