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 "components/policy/core/browser/android/android_combined_policy_provide
r.h" | 9 #include "components/policy/core/browser/android/android_combined_policy_provide
r.h" |
10 #include "components/policy/core/browser/configuration_policy_handler_list.h" | 10 #include "components/policy/core/browser/configuration_policy_handler_list.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 make_scoped_ptr(new policy::URLBlacklistPolicyHandler())); | 43 make_scoped_ptr(new policy::URLBlacklistPolicyHandler())); |
44 | 44 |
45 // HTTP Negotiate authentication | 45 // HTTP Negotiate authentication |
46 handlers->AddHandler(make_scoped_ptr(new policy::SimplePolicyHandler( | 46 handlers->AddHandler(make_scoped_ptr(new policy::SimplePolicyHandler( |
47 policy::key::kAuthServerWhitelist, prefs::kAuthServerWhitelist, | 47 policy::key::kAuthServerWhitelist, prefs::kAuthServerWhitelist, |
48 base::Value::TYPE_STRING))); | 48 base::Value::TYPE_STRING))); |
49 handlers->AddHandler(make_scoped_ptr(new policy::SimplePolicyHandler( | 49 handlers->AddHandler(make_scoped_ptr(new policy::SimplePolicyHandler( |
50 policy::key::kAuthAndroidNegotiateAccountType, | 50 policy::key::kAuthAndroidNegotiateAccountType, |
51 prefs::kAuthAndroidNegotiateAccountType, base::Value::TYPE_STRING))); | 51 prefs::kAuthAndroidNegotiateAccountType, base::Value::TYPE_STRING))); |
52 | 52 |
53 return handlers.Pass(); | 53 return handlers; |
54 } | 54 } |
55 | 55 |
56 } // namespace | 56 } // namespace |
57 | 57 |
58 AwBrowserPolicyConnector::AwBrowserPolicyConnector() | 58 AwBrowserPolicyConnector::AwBrowserPolicyConnector() |
59 : BrowserPolicyConnectorBase(base::Bind(&BuildHandlerList)) { | 59 : BrowserPolicyConnectorBase(base::Bind(&BuildHandlerList)) { |
60 SetPlatformPolicyProvider(make_scoped_ptr( | 60 SetPlatformPolicyProvider(make_scoped_ptr( |
61 new policy::android::AndroidCombinedPolicyProvider(GetSchemaRegistry()))); | 61 new policy::android::AndroidCombinedPolicyProvider(GetSchemaRegistry()))); |
62 InitPolicyProviders(); | 62 InitPolicyProviders(); |
63 } | 63 } |
64 | 64 |
65 AwBrowserPolicyConnector::~AwBrowserPolicyConnector() {} | 65 AwBrowserPolicyConnector::~AwBrowserPolicyConnector() {} |
66 | 66 |
67 } // namespace android_webview | 67 } // namespace android_webview |
OLD | NEW |