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

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

Issue 2858013002: PS - Showing permission prompt for activeTab (Closed)
Patch Set: Changed permission prompt message Created 3 years, 7 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_ACTIVE_TAB_PERMISSION_GRANTER_DELEGAT E_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_ACTIVE_TAB_PERMISSION_GRANTER_DELEGAT E_CHROMEOS_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/extensions/active_tab_permission_granter.h"
10
11 namespace content {
12 class WebContents;
13 }
14
15 namespace extensions {
16 class Extension;
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 standpoint, so we show a permission
21 // prompt the first time an extension tries to use activeTab permission (unless
22 // the extension is whitelisted).
23 class ActiveTabPermissionGranterDelegateChromeOS
24 : public ActiveTabPermissionGranter::Delegate {
25 public:
26 ActiveTabPermissionGranterDelegateChromeOS();
27 ~ActiveTabPermissionGranterDelegateChromeOS() override;
28
29 // ActiveTabPermissionGranter::Delegate
30 bool ShouldGrantActiveTab(const Extension* extension,
31 content::WebContents* web_contents) override;
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(ActiveTabPermissionGranterDelegateChromeOS);
35 };
36
37 } // namespace extensions
38
39 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_ACTIVE_TAB_PERMISSION_GRANTER_DELE GATE_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698