OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_ |
6 #define CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_ | 6 #define CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "components/policy/core/browser/browser_policy_connector.h" | 10 #include "components/policy/core/browser/browser_policy_connector.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 ~ChromeBrowserPolicyConnector() override; | 34 ~ChromeBrowserPolicyConnector() override; |
35 | 35 |
36 void Init( | 36 void Init( |
37 PrefService* local_state, | 37 PrefService* local_state, |
38 scoped_refptr<net::URLRequestContextGetter> request_context) override; | 38 scoped_refptr<net::URLRequestContextGetter> request_context) override; |
39 | 39 |
40 private: | 40 private: |
41 ConfigurationPolicyProvider* CreatePlatformProvider(); | 41 ConfigurationPolicyProvider* CreatePlatformProvider(); |
42 | 42 |
43 // Appends the --enable-web-based-signin flag if the | 43 // Appends any required flags if certain policies are set. |
44 // enable-web-based-signin policy is enabled. | |
45 // TODO(guohui): Needs to move this to a more proper place and also to handle | 44 // TODO(guohui): Needs to move this to a more proper place and also to handle |
46 // dynamic refresh. | 45 // dynamic refresh. |
47 void AppendExtraFlagPerPolicy(); | 46 void AppendExtraFlagsPerPolicy(); |
48 | 47 |
49 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPolicyConnector); | 48 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPolicyConnector); |
50 }; | 49 }; |
51 | 50 |
52 } // namespace policy | 51 } // namespace policy |
53 | 52 |
54 #endif // CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_ | 53 #endif // CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_ |
OLD | NEW |