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

Unified Diff: chrome/browser/policy/policy_stubs.cc

Issue 7096013: Allow device policy code to be optionally included. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make changes requested by torne. Created 9 years, 7 months 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
Index: chrome/browser/policy/policy_stubs.cc
diff --git a/chrome/browser/policy/policy_stubs.cc b/chrome/browser/policy/policy_stubs.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8e4c648d871cb5499b84f0611e25359f5c500564
--- /dev/null
+++ b/chrome/browser/policy/policy_stubs.cc
@@ -0,0 +1,81 @@
+// Copyright (c) 2011 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.
+
+#include "chrome/browser/policy/browser_policy_connector.h"
+#include "chrome/browser/policy/configuration_policy_pref_store.h"
+#include "chrome/browser/policy/cloud_policy_subsystem.h"
+#include "chrome/browser/policy/profile_policy_connector.h"
+#include "chrome/browser/policy/profile_policy_connector_factory.h"
+
+// Policies are optionally built, hence the following stubs.
+
+namespace policy {
+
+// static
+BrowserPolicyConnector* BrowserPolicyConnector::Create() {
+ return NULL;
+}
+
+// static
+BrowserPolicyConnector* BrowserPolicyConnector::CreateForTests() {
+ return NULL;
+}
+
+BrowserPolicyConnector::~BrowserPolicyConnector() {
+}
+
+// static
+const ConfigurationPolicyProvider::PolicyDefinitionList*
+ConfigurationPolicyPrefStore::GetChromePolicyDefinitionList() {
+ return NULL;
+}
+
+// static
+ConfigurationPolicyPrefStore* ConfigurationPolicyPrefStore::Create(
+ ConfigurationPolicyProvider* provider) {
+ return NULL;
+}
+
+// static
+ConfigurationPolicyPrefStore*
+ConfigurationPolicyPrefStore::CreateManagedPlatformPolicyPrefStore() {
+ return NULL;
+}
+
+// static
+ConfigurationPolicyPrefStore*
+ConfigurationPolicyPrefStore::CreateManagedCloudPolicyPrefStore(
+ Profile* profile) {
+ return NULL;
+}
+
+// static
+ConfigurationPolicyPrefStore*
+ConfigurationPolicyPrefStore::CreateRecommendedPlatformPolicyPrefStore() {
+ return NULL;
+}
+
+// static
+ConfigurationPolicyPrefStore*
+ConfigurationPolicyPrefStore::CreateRecommendedCloudPolicyPrefStore(
+ Profile* profile) {
+ return NULL;
+}
+
+// static
+void CloudPolicySubsystem::RegisterPrefs(PrefService* local_state) {
+ // don't need prefs for things we don't use.
+}
+
+// static
+void ProfilePolicyConnector::Initialize() {
+}
+
+// static
+ProfilePolicyConnector*
+ProfilePolicyConnectorFactory::GetForProfile(Profile* profile) {
+ return NULL;
+}
+
+} // namespace policy
« no previous file with comments | « chrome/browser/policy/configuration_policy_pref_store_unittest.cc ('k') | chrome/browser/prefs/pref_service_mock_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698