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

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

Issue 2743423004: Permissions: Show the reason for permission decisions made on the user's behalf. (Closed)
Patch Set: Rebase againnn 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/website_settings_ui.h
diff --git a/chrome/browser/ui/page_info/website_settings_ui.h b/chrome/browser/ui/page_info/website_settings_ui.h
index 8ef17b62cf71f48e94c4335a2e405a2e78628778..5141c96695303b97b52aff099d0c8739fb217f0d 100644
--- a/chrome/browser/ui/page_info/website_settings_ui.h
+++ b/chrome/browser/ui/page_info/website_settings_ui.h
@@ -155,6 +155,13 @@ class WebsiteSettingsUI {
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 PermissionDecisionReasonToString(
dominickn 2017/03/26 23:46:24 ToUIString for consistency?
Patti Lor 2017/03/27 05:52:40 Done.
+ Profile* profile,
+ const PermissionInfo& permission,
+ const GURL& url);
+
// Returns the icon resource ID for the given permission |type| and |setting|.
static int GetPermissionIconID(ContentSettingsType type,
ContentSetting setting);

Powered by Google App Engine
This is Rietveld 408576698