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

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

Issue 10035043: Update RestoreOnStartupPolicyHandler to translate to the correct preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: \n Created 8 years, 8 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 | Annotate | Revision Log
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_CONFIGURATION_POLICY_HANDLER_H_ 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 virtual bool CheckPolicySettings(const PolicyMap& policies, 300 virtual bool CheckPolicySettings(const PolicyMap& policies,
301 PolicyErrorMap* errors) OVERRIDE; 301 PolicyErrorMap* errors) OVERRIDE;
302 virtual void ApplyPolicySettings(const PolicyMap& policies, 302 virtual void ApplyPolicySettings(const PolicyMap& policies,
303 PrefValueMap* prefs) OVERRIDE; 303 PrefValueMap* prefs) OVERRIDE;
304 304
305 private: 305 private:
306 DISALLOW_COPY_AND_ASSIGN(JavascriptPolicyHandler); 306 DISALLOW_COPY_AND_ASSIGN(JavascriptPolicyHandler);
307 }; 307 };
308 308
309 // Handles RestoreOnStartup policy. 309 // Handles RestoreOnStartup policy.
310 class RestoreOnStartupPolicyHandler : public SimplePolicyHandler { 310 class RestoreOnStartupPolicyHandler : public TypeCheckingPolicyHandler {
311 public: 311 public:
312 RestoreOnStartupPolicyHandler(); 312 RestoreOnStartupPolicyHandler();
313 virtual ~RestoreOnStartupPolicyHandler(); 313 virtual ~RestoreOnStartupPolicyHandler();
314 314
315 // ConfigurationPolicyHandler methods: 315 // ConfigurationPolicyHandler methods:
316 virtual bool CheckPolicySettings(const PolicyMap& policies, 316 virtual bool CheckPolicySettings(const PolicyMap& policies,
317 PolicyErrorMap* errors) OVERRIDE; 317 PolicyErrorMap* errors) OVERRIDE;
318 virtual void ApplyPolicySettings(const PolicyMap& policies,
319 PrefValueMap* prefs) OVERRIDE;
318 320
319 private: 321 private:
322 void ApplyPolicySettingsFromHomePage(const PolicyMap& policies,
323 PrefValueMap* prefs);
324
320 DISALLOW_COPY_AND_ASSIGN(RestoreOnStartupPolicyHandler); 325 DISALLOW_COPY_AND_ASSIGN(RestoreOnStartupPolicyHandler);
321 }; 326 };
322 327
323 } // namespace policy 328 } // namespace policy
324 329
325 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ 330 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/policy/configuration_policy_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698