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

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

Issue 10827050: Added a timezone policy and pyauto tests for it. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments. Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_POLICY_CONNECTOR_H_ 5 #ifndef CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 6 #define CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 const content::NotificationSource& source, 167 const content::NotificationSource& source,
168 const content::NotificationDetails& details) OVERRIDE; 168 const content::NotificationDetails& details) OVERRIDE;
169 169
170 // Initializes the device cloud policy infrasturcture. 170 // Initializes the device cloud policy infrasturcture.
171 void InitializeDevicePolicy(); 171 void InitializeDevicePolicy();
172 172
173 // Complete initialization once the message loops are running and the 173 // Complete initialization once the message loops are running and the
174 // local_state is initialized. 174 // local_state is initialized.
175 void CompleteInitialization(); 175 void CompleteInitialization();
176 176
177 // Set the timezone as soon as the policies are available.
178 void SetTimezoneIfPolicyAvailable();
179
177 static ConfigurationPolicyProvider* CreatePlatformProvider(); 180 static ConfigurationPolicyProvider* CreatePlatformProvider();
178 181
179 // Used to convert policies to preferences. The providers declared below 182 // Used to convert policies to preferences. The providers declared below
180 // trigger policy updates during destruction via OnProviderGoingAway(), which 183 // trigger policy updates during destruction via OnProviderGoingAway(), which
181 // will result in |handler_list_| being consulted for policy translation. 184 // will result in |handler_list_| being consulted for policy translation.
182 // Therefore, it's important to destroy |handler_list_| after the providers. 185 // Therefore, it's important to destroy |handler_list_| after the providers.
183 ConfigurationPolicyHandlerList handler_list_; 186 ConfigurationPolicyHandlerList handler_list_;
184 187
185 scoped_ptr<ConfigurationPolicyProvider> platform_provider_; 188 scoped_ptr<ConfigurationPolicyProvider> platform_provider_;
186 189
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 #if defined(OS_CHROMEOS) 221 #if defined(OS_CHROMEOS)
219 scoped_ptr<AppPackUpdater> app_pack_updater_; 222 scoped_ptr<AppPackUpdater> app_pack_updater_;
220 #endif 223 #endif
221 224
222 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector); 225 DISALLOW_COPY_AND_ASSIGN(BrowserPolicyConnector);
223 }; 226 };
224 227
225 } // namespace policy 228 } // namespace policy
226 229
227 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_ 230 #endif // CHROME_BROWSER_POLICY_BROWSER_POLICY_CONNECTOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/device_settings_provider.cc ('k') | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698