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

Side by Side Diff: chrome/browser/policy/chrome_browser_policy_connector.h

Issue 660123003: Standardize usage of virtual/override/final in chrome/browser/policy/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/policy/cloud/cloud_policy_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 class ChromeBrowserPolicyConnector : public BrowserPolicyConnector { 24 class ChromeBrowserPolicyConnector : public BrowserPolicyConnector {
25 public: 25 public:
26 // Service initialization delay time in millisecond on startup. (So that 26 // Service initialization delay time in millisecond on startup. (So that
27 // displaying Chrome's GUI does not get delayed.) 27 // displaying Chrome's GUI does not get delayed.)
28 static const int64 kServiceInitializationStartupDelay = 5000; 28 static const int64 kServiceInitializationStartupDelay = 5000;
29 29
30 // Builds an uninitialized ChromeBrowserPolicyConnector, suitable for testing. 30 // Builds an uninitialized ChromeBrowserPolicyConnector, suitable for testing.
31 // Init() should be called to create and start the policy machinery. 31 // Init() should be called to create and start the policy machinery.
32 ChromeBrowserPolicyConnector(); 32 ChromeBrowserPolicyConnector();
33 33
34 virtual ~ChromeBrowserPolicyConnector(); 34 ~ChromeBrowserPolicyConnector() override;
35 35
36 virtual 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 the --enable-web-based-signin flag if the
44 // enable-web-based-signin policy is enabled. 44 // enable-web-based-signin policy is enabled.
45 // TODO(guohui): Needs to move this to a more proper place and also to handle 45 // TODO(guohui): Needs to move this to a more proper place and also to handle
46 // dynamic refresh. 46 // dynamic refresh.
47 void AppendExtraFlagPerPolicy(); 47 void AppendExtraFlagPerPolicy();
48 48
49 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPolicyConnector); 49 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPolicyConnector);
50 }; 50 };
51 51
52 } // namespace policy 52 } // namespace policy
53 53
54 #endif // CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_ 54 #endif // CHROME_BROWSER_POLICY_CHROME_BROWSER_POLICY_CONNECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/cloud/cloud_policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698