commit | 3e532b8c5728dec07f94189c7b6c76f262c661ae | [log] [tgz] |
---|---|---|
author | Devlin Cronin <[email protected]> | Thu May 03 21:27:19 2018 |
committer | Commit Bot <[email protected]> | Thu May 03 21:27:19 2018 |
tree | 7a04219f759a561f213012c380c2e33b2ed2591a | |
parent | 8d97e8fc3013a4954c8f6592d225bf4270b01d23 [diff] [blame] |
[Extensions] Update PermissionsData::AccessType to an enum class Update PermissionsData::AccessType to an enum class, and rename it to PermissionsData::PageAccess. This will help prevent accidental misuse of the enum (e.g., implicit conversion to bool, etc). Bug: None Change-Id: Ic81bf8cbcfd53e0700258413ef56d8150b23a046 Reviewed-on: https://chromium-review.googlesource.com/1042486 Commit-Queue: Devlin <[email protected]> Reviewed-by: Karan Bhatia <[email protected]> Cr-Commit-Position: refs/heads/master@{#555878}
diff --git a/extensions/renderer/injection_host.h b/extensions/renderer/injection_host.h index 78015a4..727df8c2 100644 --- a/extensions/renderer/injection_host.h +++ b/extensions/renderer/injection_host.h
@@ -29,7 +29,7 @@ virtual const std::string& name() const = 0; // Returns true if the script should execute. - virtual extensions::PermissionsData::AccessType CanExecuteOnFrame( + virtual extensions::PermissionsData::PageAccess CanExecuteOnFrame( const GURL& document_url, content::RenderFrame* render_frame, int tab_id,