diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-08 16:01:02 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-08 16:01:02 +0000 |
commit | c8cca4714027cb44523a3e56c1cf2046b290c3fd (patch) | |
tree | ba3df2215e05ba322e270f10862463044c6c32c5 /components/policy/core/common/policy_service_stub.h | |
parent | e8dc1d97cd08ef197dcded3ab6085113817f7f2a (diff) | |
parent | b4233fd961752b80d42ae68e8b42acfb3e99be57 (diff) | |
download | libchrome-aml_tz2_305400100.tar.gz |
Snap for 8426163 from b4233fd961752b80d42ae68e8b42acfb3e99be57 to mainline-tzdata2-releaseandroid-mainline-12.0.0_r112aml_tz2_305400500aml_tz2_305400300aml_tz2_305400100aml_tz2_304500300aml_tz2_303900110aml_tz2_303900102aml_tz2_303800002aml_tz2_303800001aml_tz2_303200001android12-mainline-tzdata2-releaseaml_tz2_305400100
Change-Id: Iaf6b976428391bc7e96824795b5eda53b01906d1
Diffstat (limited to 'components/policy/core/common/policy_service_stub.h')
-rw-r--r-- | components/policy/core/common/policy_service_stub.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/components/policy/core/common/policy_service_stub.h b/components/policy/core/common/policy_service_stub.h deleted file mode 100644 index 8759336fe8..0000000000 --- a/components/policy/core/common/policy_service_stub.h +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_STUB_H_ -#define COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_STUB_H_ - -#include "base/macros.h" -#include "components/policy/core/common/policy_map.h" -#include "components/policy/core/common/policy_service.h" -#include "components/policy/policy_export.h" - -namespace policy { - -// A stub implementation, that is used when ENABLE_CONFIGURATION_POLICY is not -// set. This allows client code to compile without requiring #ifdefs. -class POLICY_EXPORT PolicyServiceStub : public PolicyService { - public: - PolicyServiceStub(); - ~PolicyServiceStub() override; - - void AddObserver(PolicyDomain domain, - Observer* observer) override; - - void RemoveObserver(PolicyDomain domain, - Observer* observer) override; - - const PolicyMap& GetPolicies( - const PolicyNamespace& ns) const override; - - bool IsInitializationComplete(PolicyDomain domain) const override; - - void RefreshPolicies(const base::Closure& callback) override; - private: - const PolicyMap kEmpty_; - - DISALLOW_COPY_AND_ASSIGN(PolicyServiceStub); -}; - -} // namespace policy - -#endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_STUB_H_ |