Index: chrome/browser/chromeos/platform_keys/key_permissions_policy_handlers.h |
diff --git a/chrome/browser/chromeos/platform_keys/key_permissions_policy_handlers.h b/chrome/browser/chromeos/platform_keys/key_permissions_policy_handlers.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1ca2d2d9c560ab3fdfe54f41a2b93df3e0ed8d1b |
--- /dev/null |
+++ b/chrome/browser/chromeos/platform_keys/key_permissions_policy_handlers.h |
@@ -0,0 +1,30 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_KEY_PERMISSIONS_POLICY_HANDLERS_H_ |
bartfab (slow)
2015/06/15 17:28:15
Nit: Why is the file name in the plural (handler*s
pneubeck (no reviews)
2015/06/17 08:59:56
Done.
|
+#define CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_KEY_PERMISSIONS_POLICY_HANDLERS_H_ |
+ |
+#include "base/memory/scoped_ptr.h" |
bartfab (slow)
2015/06/15 17:28:15
Nit: Not used.
pneubeck (no reviews)
2015/06/17 08:59:56
Done.
|
+#include "base/values.h" |
bartfab (slow)
2015/06/15 17:28:15
Nit: Not used.
pneubeck (no reviews)
2015/06/17 08:59:56
Done.
|
+#include "components/policy/core/browser/configuration_policy_handler.h" |
+ |
+namespace chromeos { |
+ |
+class KeyPermissionsPolicyHandler |
+ : public policy::SchemaValidatingPolicyHandler { |
+ public: |
+ explicit KeyPermissionsPolicyHandler(const policy::Schema& chrome_schema); |
bartfab (slow)
2015/06/15 17:28:15
Nit: Forward-declare |policy::Schema|.
pneubeck (no reviews)
2015/06/17 08:59:56
Done.
|
+ ~KeyPermissionsPolicyHandler() override; |
bartfab (slow)
2015/06/15 17:28:15
Nit: No need to override the destructor here.
pneubeck (no reviews)
2015/06/17 08:59:56
Done.
|
+ |
+ // ConfigurationPolicyHandler: |
bartfab (slow)
2015/06/15 17:28:15
Nit: s|// |// policy::|
pneubeck (no reviews)
2015/06/17 08:59:56
Done.
|
+ void ApplyPolicySettings(const policy::PolicyMap& policies, |
+ PrefValueMap* prefs) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(KeyPermissionsPolicyHandler); |
bartfab (slow)
2015/06/15 17:28:15
Nit: #include "base/macros.h"
pneubeck (no reviews)
2015/06/17 08:59:56
Done.
|
+}; |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_KEY_PERMISSIONS_POLICY_HANDLERS_H_ |