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

Side by Side Diff: chrome/browser/policy/configuration_policy_handler_list.cc

Issue 15199006: Retire ClearSiteDataOnExit policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 6 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 #include "chrome/browser/policy/configuration_policy_handler_list.h" 5 #include "chrome/browser/policy/configuration_policy_handler_list.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/prefs/pref_value_map.h" 9 #include "base/prefs/pref_value_map.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 409
410 ConfigurationPolicyHandlerList::ConfigurationPolicyHandlerList() { 410 ConfigurationPolicyHandlerList::ConfigurationPolicyHandlerList() {
411 for (size_t i = 0; i < arraysize(kSimplePolicyMap); ++i) { 411 for (size_t i = 0; i < arraysize(kSimplePolicyMap); ++i) {
412 handlers_.push_back( 412 handlers_.push_back(
413 new SimplePolicyHandler(kSimplePolicyMap[i].policy_name, 413 new SimplePolicyHandler(kSimplePolicyMap[i].policy_name,
414 kSimplePolicyMap[i].preference_path, 414 kSimplePolicyMap[i].preference_path,
415 kSimplePolicyMap[i].value_type)); 415 kSimplePolicyMap[i].value_type));
416 } 416 }
417 417
418 handlers_.push_back(new AutofillPolicyHandler()); 418 handlers_.push_back(new AutofillPolicyHandler());
419 handlers_.push_back(new ClearSiteDataOnExitPolicyHandler());
420 handlers_.push_back(new DefaultSearchPolicyHandler()); 419 handlers_.push_back(new DefaultSearchPolicyHandler());
421 handlers_.push_back(new DiskCacheDirPolicyHandler()); 420 handlers_.push_back(new DiskCacheDirPolicyHandler());
422 handlers_.push_back(new FileSelectionDialogsHandler()); 421 handlers_.push_back(new FileSelectionDialogsHandler());
423 handlers_.push_back(new IncognitoModePolicyHandler()); 422 handlers_.push_back(new IncognitoModePolicyHandler());
424 handlers_.push_back(new JavascriptPolicyHandler()); 423 handlers_.push_back(new JavascriptPolicyHandler());
425 handlers_.push_back(new ProxyPolicyHandler()); 424 handlers_.push_back(new ProxyPolicyHandler());
426 handlers_.push_back(new RestoreOnStartupPolicyHandler()); 425 handlers_.push_back(new RestoreOnStartupPolicyHandler());
427 handlers_.push_back(new SyncPolicyHandler()); 426 handlers_.push_back(new SyncPolicyHandler());
428 427
429 handlers_.push_back( 428 handlers_.push_back(
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 } 558 }
560 559
561 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 560 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
562 PolicyMap* policies) const { 561 PolicyMap* policies) const {
563 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 562 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
564 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 563 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
565 (*handler)->PrepareForDisplaying(policies); 564 (*handler)->PrepareForDisplaying(policies);
566 } 565 }
567 566
568 } // namespace policy 567 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler.cc ('k') | chrome/browser/policy/configuration_policy_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698