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

Unified Diff: chrome/browser/chromeos/extensions/signin_screen_policy_provider.h

Issue 2159103006: Add policy provider that would filter extensions/apps allowed on the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed first set of comments Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/extensions/signin_screen_policy_provider.h
diff --git a/chrome/browser/chromeos/extensions/signin_screen_policy_provider.h b/chrome/browser/chromeos/extensions/signin_screen_policy_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..cb7712598491c472b8e5301c3b2fd9bc3c57ca48
--- /dev/null
+++ b/chrome/browser/chromeos/extensions/signin_screen_policy_provider.h
@@ -0,0 +1,34 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
emaxx 2016/07/26 02:55:32 nit: s/2013/2016/
Denis Kuznetsov (DE-MUC) 2016/08/29 15:14:40 Done. I believe at some point there was (or it was
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_SIGNIN_SCREEN_POLICY_PROVIDER_H_
+#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_SIGNIN_SCREEN_POLICY_PROVIDER_H_
+
+#include "base/compiler_specific.h"
emaxx 2016/07/26 02:55:32 nit: Please fix the includes in this and other new
Denis Kuznetsov (DE-MUC) 2016/08/29 15:14:40 Done.
+#include "base/macros.h"
+#include "chrome/browser/chromeos/policy/device_local_account.h"
+#include "extensions/browser/management_policy.h"
+
+namespace chromeos {
+
+// A managed policy for apps on chromeos login screen.
+// It ensures that only very limited set of APIs are avaliable for such apps.
+class SigninScreenPolicyProvider
+ : public extensions::ManagementPolicy::Provider {
+ public:
+ SigninScreenPolicyProvider();
+ ~SigninScreenPolicyProvider() override;
+
+ // extensions::ManagementPolicy::Provider:
+ std::string GetDebugPolicyProviderName() const override;
+ bool UserMayLoad(const extensions::Extension* extension,
+ base::string16* error) const override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SigninScreenPolicyProvider);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_SIGNIN_SCREEN_POLICY_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698