[Extensions Bindings] Update lastError access criteria

Desktop / Chromium - rdevlin.cronin [chromium.org] - 19 April 2017 21:28 EDT

Accessing lastError through chrome.runtime.lastError should be sufficient to count as access (rather than needing to access chrome.runtime.lastError.message). Update the bindings and add additional tests.

BUG=653596

Review-Url: https://codereview.chromium.org/2809223002 Cr-Commit-Position: refs/heads/master@{#465848}

78c56d1 [Extensions Bindings] Update lastError access criteria
extensions/renderer/api_last_error.cc | 113 +++++++++++++++++++++----
extensions/renderer/api_last_error_unittest.cc | 86 ++++++++++++++-----
2 files changed, 160 insertions(+), 39 deletions(-)

Upstream: git.chromium.org


  • Share