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

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

Issue 1818423003: Revert of Remove configuration policy from chrome build files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@policy_chrome_defines
Patch Set: Created 4 years, 9 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
« no previous file with comments | « chrome/browser/policy/BUILD.gn ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/profile_policy_connector_stub.cc
diff --git a/chrome/browser/policy/profile_policy_connector_stub.cc b/chrome/browser/policy/profile_policy_connector_stub.cc
new file mode 100644
index 0000000000000000000000000000000000000000..39a1b36764dbf381b7c74d9add99b5c8eaffecd2
--- /dev/null
+++ b/chrome/browser/policy/profile_policy_connector_stub.cc
@@ -0,0 +1,40 @@
+// Copyright (c) 2013 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 <utility>
+
+#include "chrome/browser/policy/profile_policy_connector.h"
+#include "components/policy/core/common/policy_service_stub.h"
+
+namespace policy {
+
+ProfilePolicyConnector::ProfilePolicyConnector() {}
+
+ProfilePolicyConnector::~ProfilePolicyConnector() {}
+
+void ProfilePolicyConnector::Init(
+ SchemaRegistry* schema_registry,
+ CloudPolicyManager* user_cloud_policy_manager) {
+ policy_service_.reset(new PolicyServiceStub());
+}
+
+void ProfilePolicyConnector::InitForTesting(scoped_ptr<PolicyService> service) {
+ policy_service_ = std::move(service);
+}
+
+void ProfilePolicyConnector::Shutdown() {}
+
+bool ProfilePolicyConnector::IsManaged() const {
+ return false;
+}
+
+std::string ProfilePolicyConnector::GetManagementDomain() const {
+ return "";
+}
+
+bool ProfilePolicyConnector::IsPolicyFromCloudPolicy(const char* name) const {
+ return false;
+}
+
+} // namespace policy
« no previous file with comments | « chrome/browser/policy/BUILD.gn ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698