Extensions: Change logic for ExtensionResource::empty().
ExtensionResource::empty() currently checks whether the extension root path is empty. However this is not correct since dummy extension objects are often created with an empty extension root path, for example, this can happen during the webstore install flow. This can cause ExtensionResource::empty() to incorrectly return false for a valid ExtensionResource. Fix this by changing ExtensionResource::empty() to check for the emptiness of the relative path instead. BUG=1087348 Change-Id: I195c6274118ba4bc869027dd6f53fde7199e3d4c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2225896Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Commit-Queue: Karan Bhatia <karandeepb@chromium.org> Cr-Commit-Position: refs/heads/master@{#773922}
Showing
Please register or sign in to comment