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

Unified Diff: chrome/browser/ui/page_info/page_info_ui.h

Issue 2743423004: Permissions: Show the reason for permission decisions made on the user's behalf. (Closed)
Patch Set: Review comments. Created 3 years, 9 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/ui/page_info/page_info_ui.h
diff --git a/chrome/browser/ui/page_info/page_info_ui.h b/chrome/browser/ui/page_info/page_info_ui.h
index e1d47caafdda24f1c21fda1f324193e8539575e4..391f52861f5668675953c6dcc17b935b71b1ae8f 100644
--- a/chrome/browser/ui/page_info/page_info_ui.h
+++ b/chrome/browser/ui/page_info/page_info_ui.h
@@ -15,6 +15,7 @@
#include "components/content_settings/core/common/content_settings_types.h"
#include "ui/gfx/native_widget_types.h"
+class GURL;
class Profile;
class PageInfo;
@@ -155,6 +156,16 @@ class PageInfoUI {
ContentSetting default_setting,
content_settings::SettingSource source);
+ // Returns a string indicating whether the permission was blocked via an
+ // extension, enterprise policy, or embargo.
+ static base::string16 PermissionDecisionReasonToUIString(
+ Profile* profile,
+ const PermissionInfo& permission,
+ const GURL& url);
+
+ // Returns the color to use for the permission decision reason strings.
+ static SkColor GetPermissionDecisionTextColor();
+
// Returns the icon resource ID for the given permission |type| and |setting|.
static int GetPermissionIconID(ContentSettingsType type,
ContentSetting setting);
« no previous file with comments | « chrome/browser/ui/cocoa/page_info/page_info_bubble_controller_unittest.mm ('k') | chrome/browser/ui/page_info/page_info_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698