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" |
11 #include "components/policy/core/browser/configuration_policy_handler_list.h" | 11 #include "components/policy/core/browser/configuration_policy_handler_list.h" |
12 #include "components/policy/core/browser/url_blacklist_policy_handler.h" | 12 #include "components/policy/core/browser/url_blacklist_policy_handler.h" |
13 #include "components/policy/core/common/policy_pref_names.h" | 13 #include "components/policy/core/common/policy_pref_names.h" |
| 14 #include "components/policy/policy_constants.h" |
14 #include "net/url_request/url_request_context_getter.h" | 15 #include "net/url_request/url_request_context_getter.h" |
15 #include "policy/policy_constants.h" | |
16 | 16 |
17 namespace android_webview { | 17 namespace android_webview { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // Callback only used in ChromeOS. No-op here. | 21 // Callback only used in ChromeOS. No-op here. |
22 void PopulatePolicyHandlerParameters( | 22 void PopulatePolicyHandlerParameters( |
23 policy::PolicyHandlerParameters* parameters) {} | 23 policy::PolicyHandlerParameters* parameters) {} |
24 | 24 |
25 // Used to check if a policy is deprecated. Currently bypasses that check. | 25 // Used to check if a policy is deprecated. Currently bypasses that check. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 AwBrowserPolicyConnector::AwBrowserPolicyConnector() | 64 AwBrowserPolicyConnector::AwBrowserPolicyConnector() |
65 : BrowserPolicyConnectorBase(base::Bind(&BuildHandlerList)) { | 65 : BrowserPolicyConnectorBase(base::Bind(&BuildHandlerList)) { |
66 SetPlatformPolicyProvider(base::WrapUnique( | 66 SetPlatformPolicyProvider(base::WrapUnique( |
67 new policy::android::AndroidCombinedPolicyProvider(GetSchemaRegistry()))); | 67 new policy::android::AndroidCombinedPolicyProvider(GetSchemaRegistry()))); |
68 InitPolicyProviders(); | 68 InitPolicyProviders(); |
69 } | 69 } |
70 | 70 |
71 AwBrowserPolicyConnector::~AwBrowserPolicyConnector() {} | 71 AwBrowserPolicyConnector::~AwBrowserPolicyConnector() {} |
72 | 72 |
73 } // namespace android_webview | 73 } // namespace android_webview |
OLD | NEW |