| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "chrome/browser/invalidation/invalidation_service_factory.h" | 8 #include "chrome/browser/invalidation/invalidation_service_factory.h" |
| 9 #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator.h" | 9 #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/common/chrome_switches.h" | |
| 12 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" | 11 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" |
| 12 #include "components/policy/core/common/policy_switches.h" |
| 13 #if defined(OS_CHROMEOS) | 13 #if defined(OS_CHROMEOS) |
| 14 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" | 14 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" |
| 15 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" | 15 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chrom
eos.h" |
| 16 #else | 16 #else |
| 17 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" | 17 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h" |
| 18 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" | 18 #include "chrome/browser/policy/cloud/user_cloud_policy_manager_factory.h" |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 namespace policy { | 21 namespace policy { |
| 22 | 22 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // Must be automatically created to enable user policy invalidations. | 67 // Must be automatically created to enable user policy invalidations. |
| 68 return true; | 68 return true; |
| 69 } | 69 } |
| 70 | 70 |
| 71 bool UserCloudPolicyInvalidatorFactory::ServiceIsNULLWhileTesting() const { | 71 bool UserCloudPolicyInvalidatorFactory::ServiceIsNULLWhileTesting() const { |
| 72 // Not used in tests. | 72 // Not used in tests. |
| 73 return true; | 73 return true; |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace policy | 76 } // namespace policy |
| OLD | NEW |