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

Unified Diff: extensions/common/permissions/permission_message_util.h

Issue 410023002: Show read-only messages for non-interact non-desktop Automation extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Rebase Created 6 years, 1 month 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: extensions/common/permissions/permission_message_util.h
diff --git a/extensions/common/permissions/permission_message_util.h b/extensions/common/permissions/permission_message_util.h
index 410e1a2816696ff4afa704d719211ddc3d0ccd1c..1046bfb55869eb95c136c6b2d2962e7b1b79b5ff 100644
--- a/extensions/common/permissions/permission_message_util.h
+++ b/extensions/common/permissions/permission_message_util.h
@@ -16,10 +16,14 @@ class URLPatternSet;
namespace permission_message_util {
+enum PermissionMessageProperties { kReadOnly, kReadWrite };
+
// Creates the corresponding permission message for a list of hosts.
-// The messages change depending on what hosts are present.
+// The messages change depending on how many hosts are present, and whether
+// |read_only| is true.
extensions::PermissionMessage CreateFromHostList(
- const std::set<std::string>& hosts);
+ const std::set<std::string>& hosts,
+ PermissionMessageProperties);
std::set<std::string> GetDistinctHosts(
const extensions::URLPatternSet& host_patterns,
« no previous file with comments | « extensions/common/permissions/permission_message.h ('k') | extensions/common/permissions/permission_message_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698