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

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

Issue 13132004: Implement Enterprise Key API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing reviewer comments. Created 7 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
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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 Value::TYPE_BOOLEAN }, 368 Value::TYPE_BOOLEAN },
369 { key::kTermsOfServiceURL, 369 { key::kTermsOfServiceURL,
370 prefs::kTermsOfServiceURL, 370 prefs::kTermsOfServiceURL,
371 Value::TYPE_STRING }, 371 Value::TYPE_STRING },
372 { key::kShowAccessibilityOptionsInSystemTrayMenu, 372 { key::kShowAccessibilityOptionsInSystemTrayMenu,
373 prefs::kShouldAlwaysShowAccessibilityMenu, 373 prefs::kShouldAlwaysShowAccessibilityMenu,
374 Value::TYPE_BOOLEAN }, 374 Value::TYPE_BOOLEAN },
375 { key::kRebootAfterUpdate, 375 { key::kRebootAfterUpdate,
376 prefs::kRebootAfterUpdate, 376 prefs::kRebootAfterUpdate,
377 Value::TYPE_BOOLEAN }, 377 Value::TYPE_BOOLEAN },
378 { key::kAttestationEnabledForUser,
379 prefs::kAttestationEnabled,
380 Value::TYPE_BOOLEAN },
381 { key::kAttestationExtensionWhitelist,
382 prefs::kAttestationExtensionWhitelist,
383 Value::TYPE_LIST },
Mattias Nissler (ping if slow) 2013/04/10 16:53:26 This should use ExtensionListPolicyHandler instead
davidyu 2013/04/17 05:39:15 Done.
378 #endif // defined(OS_CHROMEOS) 384 #endif // defined(OS_CHROMEOS)
379 385
380 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 386 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
381 { key::kBackgroundModeEnabled, 387 { key::kBackgroundModeEnabled,
382 prefs::kBackgroundModeEnabled, 388 prefs::kBackgroundModeEnabled,
383 Value::TYPE_BOOLEAN }, 389 Value::TYPE_BOOLEAN },
384 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 390 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
385 }; 391 };
386 392
387 // Mapping from extension type names to Manifest::Type. 393 // Mapping from extension type names to Manifest::Type.
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 } 553 }
548 554
549 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 555 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
550 PolicyMap* policies) const { 556 PolicyMap* policies) const {
551 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 557 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
552 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 558 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
553 (*handler)->PrepareForDisplaying(policies); 559 (*handler)->PrepareForDisplaying(policies);
554 } 560 }
555 561
556 } // namespace policy 562 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698