| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "android_webview/browser/aw_browser_policy_connector.h" | 5 #include "android_webview/browser/aw_browser_policy_connector.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/aw_browser_context.h" | 7 #include "android_webview/browser/aw_browser_context.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "components/policy/core/browser/android/android_combined_policy_provide
r.h" | 10 #include "components/policy/core/browser/android/android_combined_policy_provide
r.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 base::WrapUnique(new policy::URLBlacklistPolicyHandler())); | 44 base::WrapUnique(new policy::URLBlacklistPolicyHandler())); |
| 45 | 45 |
| 46 // HTTP Negotiate authentication | 46 // HTTP Negotiate authentication |
| 47 handlers->AddHandler(base::WrapUnique(new policy::SimplePolicyHandler( | 47 handlers->AddHandler(base::WrapUnique(new policy::SimplePolicyHandler( |
| 48 policy::key::kAuthServerWhitelist, prefs::kAuthServerWhitelist, | 48 policy::key::kAuthServerWhitelist, prefs::kAuthServerWhitelist, |
| 49 base::Value::TYPE_STRING))); | 49 base::Value::TYPE_STRING))); |
| 50 handlers->AddHandler(base::WrapUnique(new policy::SimplePolicyHandler( | 50 handlers->AddHandler(base::WrapUnique(new policy::SimplePolicyHandler( |
| 51 policy::key::kAuthAndroidNegotiateAccountType, | 51 policy::key::kAuthAndroidNegotiateAccountType, |
| 52 prefs::kAuthAndroidNegotiateAccountType, base::Value::TYPE_STRING))); | 52 prefs::kAuthAndroidNegotiateAccountType, base::Value::TYPE_STRING))); |
| 53 | 53 |
| 54 // Web restrictions |
| 55 handlers->AddHandler(base::WrapUnique(new policy::SimplePolicyHandler( |
| 56 policy::key::kWebRestrictionsAuthority, prefs::kWebRestrictionsAuthority, |
| 57 base::Value::TYPE_STRING))); |
| 58 |
| 54 return handlers; | 59 return handlers; |
| 55 } | 60 } |
| 56 | 61 |
| 57 } // namespace | 62 } // namespace |
| 58 | 63 |
| 59 AwBrowserPolicyConnector::AwBrowserPolicyConnector() | 64 AwBrowserPolicyConnector::AwBrowserPolicyConnector() |
| 60 : BrowserPolicyConnectorBase(base::Bind(&BuildHandlerList)) { | 65 : BrowserPolicyConnectorBase(base::Bind(&BuildHandlerList)) { |
| 61 SetPlatformPolicyProvider(base::WrapUnique( | 66 SetPlatformPolicyProvider(base::WrapUnique( |
| 62 new policy::android::AndroidCombinedPolicyProvider(GetSchemaRegistry()))); | 67 new policy::android::AndroidCombinedPolicyProvider(GetSchemaRegistry()))); |
| 63 InitPolicyProviders(); | 68 InitPolicyProviders(); |
| 64 } | 69 } |
| 65 | 70 |
| 66 AwBrowserPolicyConnector::~AwBrowserPolicyConnector() {} | 71 AwBrowserPolicyConnector::~AwBrowserPolicyConnector() {} |
| 67 | 72 |
| 68 } // namespace android_webview | 73 } // namespace android_webview |
| OLD | NEW |