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

Side by Side Diff: chrome/browser/chromeos/extensions/permissions_updater_delegate_chromeos.h

Issue 2794803003: PS - Remove Clipboard Read permission from extensions in Public Sessions (except for whitelisted on… (Closed)
Patch Set: Updated comment Created 3 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_PERMISSIONS_UPDATER_DELEGATE_CHROMEOS _H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_PERMISSIONS_UPDATER_DELEGATE_CHROMEOS _H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "chrome/browser/extensions/permissions_updater.h"
12
13 namespace extensions {
14
15 class Extension;
16 class PermissionSet;
17
18 // In Public Sessions, apps and extensions are force-installed by admin policy
19 // so the user does not get a chance to review the permissions for these apps.
20 // This is not acceptable from a security/privacy standpoint, therefore we
21 // remove unsecure permissions (whitelisted apps and extensions are exempt from
22 // this - eg. remote desktop clients).
23 class PermissionsUpdaterDelegateChromeOS : public PermissionsUpdater::Delegate {
24 public:
25 PermissionsUpdaterDelegateChromeOS();
26 ~PermissionsUpdaterDelegateChromeOS() override;
27
28 // PermissionsUpdater::Delegate
29 void InitializePermissions(
30 const Extension* extension,
31 std::unique_ptr<const PermissionSet>* granted_permissions) override;
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(PermissionsUpdaterDelegateChromeOS);
35 };
36
37 } // namespace extensions
38
39 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_PERMISSIONS_UPDATER_DELEGATE_CHROM EOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698