New issue
Advanced search Search tips

Issue 849997 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug

Blocking:
issue 849999



Sign in to add a comment

Represent capabilities as flags in the FMP API to save memory

Project Member Reported by sashab@chromium.org, Jun 6 2018

Issue description

Representing each capability as a separate field in the FMP API makes communicating and storing these capabilities unecessarily verbose.

Instead, store them as one field (e.g. |capabilityFlags|), and have helper methods in the JS/C++ to convert this integer back to a map of bools.

Also, in:
  constants.LIST_CONTAINER_METADATA_PREFETCH_PROPERTY_NAMES
instead of storing:
  canCopy
  canDelete
  canRename
  canAddChildren
  canShare
just store:
  capabilityFlags

Which can contain a single integer (convertible to an object of booleans) that represents the permissions for that entry.
 
Blocking: 849999
Labels: -Pri-2 -M-69 M-70 Pri-3
Owner: ----
Status: Available (was: Assigned)
Labels: -M-70

Sign in to add a comment