Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Unified Diff: chrome/browser/policy/policy_service_stub.h

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/policy/policy_service_impl_unittest.cc ('k') | chrome/browser/policy/policy_service_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_service_stub.h
diff --git a/chrome/browser/policy/policy_service_stub.h b/chrome/browser/policy/policy_service_stub.h
deleted file mode 100644
index 30c2f5112825ae26311d0e9dc57e9bf35b7e93ca..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/policy_service_stub.h
+++ /dev/null
@@ -1,41 +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 CHROME_BROWSER_POLICY_POLICY_SERVICE_STUB_H_
-#define CHROME_BROWSER_POLICY_POLICY_SERVICE_STUB_H_
-
-#include "base/basictypes.h"
-#include "chrome/browser/policy/policy_service.h"
-#include "components/policy/core/common/policy_map.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 PolicyServiceStub : public PolicyService {
- public:
- PolicyServiceStub();
- virtual ~PolicyServiceStub();
-
- virtual void AddObserver(PolicyDomain domain,
- Observer* observer) OVERRIDE;
-
- virtual void RemoveObserver(PolicyDomain domain,
- Observer* observer) OVERRIDE;
-
- virtual const PolicyMap& GetPolicies(
- const PolicyNamespace& ns) const OVERRIDE;
-
- virtual bool IsInitializationComplete(PolicyDomain domain) const OVERRIDE;
-
- virtual void RefreshPolicies(const base::Closure& callback) OVERRIDE;
- private:
- const PolicyMap kEmpty_;
-
- DISALLOW_COPY_AND_ASSIGN(PolicyServiceStub);
-};
-
-} // namespace policy
-
-#endif // CHROME_BROWSER_POLICY_POLICY_SERVICE_STUB_H_
« no previous file with comments | « chrome/browser/policy/policy_service_impl_unittest.cc ('k') | chrome/browser/policy/policy_service_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698