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

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

Issue 10417032: Disable sync promo when RestoreOnStartupURLs policy is used (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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_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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 virtual void ApplyPolicySettings(const PolicyMap& policies, 347 virtual void ApplyPolicySettings(const PolicyMap& policies,
348 PrefValueMap* prefs) OVERRIDE; 348 PrefValueMap* prefs) OVERRIDE;
349 349
350 private: 350 private:
351 void ApplyPolicySettingsFromHomePage(const PolicyMap& policies, 351 void ApplyPolicySettingsFromHomePage(const PolicyMap& policies,
352 PrefValueMap* prefs); 352 PrefValueMap* prefs);
353 353
354 DISALLOW_COPY_AND_ASSIGN(RestoreOnStartupPolicyHandler); 354 DISALLOW_COPY_AND_ASSIGN(RestoreOnStartupPolicyHandler);
355 }; 355 };
356 356
357 // Handles RestoreOnStartupURLs policy.
358 class RestoreOnStartupURLsPolicyHandler : public TypeCheckingPolicyHandler {
359 public:
360 RestoreOnStartupURLsPolicyHandler();
361 virtual ~RestoreOnStartupURLsPolicyHandler();
362
363 // ConfigurationPolicyHandler methods:
364 virtual void ApplyPolicySettings(const PolicyMap& policies,
365 PrefValueMap* prefs) OVERRIDE;
366
367 private:
368 DISALLOW_COPY_AND_ASSIGN(RestoreOnStartupURLsPolicyHandler);
369 };
370
357 } // namespace policy 371 } // namespace policy
358 372
359 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ 373 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698