Commit 435429ba authored by Aya ElAttar's avatar Aya ElAttar Committed by Commit Bot

Added RequiresManagedSessionFullLoginWarning to manifest permissions

Bug: 1015378
Change-Id: I8e50b5f2dde2f8b7825f53520ccc87a0383f6e1f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2089844
Commit-Queue: Aya Elsayed <ayaelattar@google.com>
Reviewed-by: default avatarSergey Poromov <poromov@chromium.org>
Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#751293}
parent a7f0b818
......@@ -86,6 +86,8 @@ class UIOverridesHandler::ManifestPermissionImpl : public ManifestPermission {
bool RequiresManagementUIWarning() const override { return false; }
bool RequiresManagedSessionFullLoginWarning() const override { return false; }
private:
bool override_bookmarks_ui_permission_;
};
......
......@@ -195,4 +195,9 @@ bool BluetoothManifestPermission::RequiresManagementUIWarning() const {
return false;
}
bool BluetoothManifestPermission::RequiresManagedSessionFullLoginWarning()
const {
return false;
}
} // namespace extensions
......@@ -54,6 +54,7 @@ class BluetoothManifestPermission : public ManifestPermission {
std::unique_ptr<ManifestPermission> Intersect(
const ManifestPermission* rhs) const override;
bool RequiresManagementUIWarning() const override;
bool RequiresManagedSessionFullLoginWarning() const override;
const BluetoothUuidSet& uuids() const {
return uuids_;
......
......@@ -318,4 +318,8 @@ bool SocketsManifestPermission::RequiresManagementUIWarning() const {
return false;
}
bool SocketsManifestPermission::RequiresManagedSessionFullLoginWarning() const {
return false;
}
} // namespace extensions
......@@ -53,6 +53,7 @@ class SocketsManifestPermission : public ManifestPermission {
std::unique_ptr<ManifestPermission> Intersect(
const ManifestPermission* rhs) const override;
bool RequiresManagementUIWarning() const override;
bool RequiresManagedSessionFullLoginWarning() const override;
const SocketPermissionEntrySet& entries() const { return permissions_; }
......
......@@ -66,6 +66,8 @@ class AutomationManifestPermission : public ManifestPermission {
bool RequiresManagementUIWarning() const override;
bool RequiresManagedSessionFullLoginWarning() const override;
private:
std::unique_ptr<const AutomationInfo> automation_info_;
};
......@@ -164,6 +166,11 @@ bool AutomationManifestPermission::RequiresManagementUIWarning() const {
return automation_info_->desktop || !automation_info_->matches.is_empty();
}
bool AutomationManifestPermission::RequiresManagedSessionFullLoginWarning()
const {
return automation_info_->desktop || !automation_info_->matches.is_empty();
}
AutomationHandler::AutomationHandler() = default;
AutomationHandler::~AutomationHandler() = default;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment