DNR: Fix installation through webstore.
Extension installation through the webstore involves creation of a dummy extension with an empty extension root path. The empty extension root path causes DNRManifestHandler::Parse to incorrectly raise an error while validating the paths for the extensions' ruleset files. This happens because ExtensionResource::empty() just checks whether the extension root path is empty. Fix this by replacing the ExtensionResource::empty() check with a more comprehensive check. BUG=1087348 TEST=Ensure https://chrome.google.com/webstore/detail/ajfdfkmbjmdjekckfgibicedaabjoong installs correctly. TBR=rdevlin.chronin@chromium.org Change-Id: I4e58cef19da771b17cc1d1541ccc7424b5b6f3af Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2219779 Commit-Queue: Karan Bhatia <karandeepb@chromium.org> Auto-Submit: Karan Bhatia <karandeepb@chromium.org> Reviewed-by:Kelvin Jiang <kelvinjiang@chromium.org> Cr-Commit-Position: refs/heads/master@{#772963}
Showing
Please register or sign in to comment