Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Issue 2386823002: [Extensions] Remove ExtensionFunction::SetError() (Closed)

Created:
4 years, 2 months ago by Devlin
Modified:
4 years, 2 months ago
Reviewers:
lazyboy
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Remove ExtensionFunction::SetError() An extension function error should be set only through the use of the response (i.e., ExtensionFunction::Error()), and setting it directly can lead to confusion and incorrect results. Remove ExtensionFunction::SetError(). Other subclasses (like AsyncExtensionFunction) still have accessors, but will be updated as they are converted. Also disable two more input IME API tests that were always failing, but silently passed because of passing success despite having an error. BUG=648275 Committed: https://crrev.com/fd7bb627894ab5fc1415c90f579dba779fddc70f Cr-Commit-Position: refs/heads/master@{#422589}

Patch Set 1 #

Patch Set 2 : Disable broken tests #

Total comments: 4

Patch Set 3 : lazyboy's #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -129 lines) Patch
M chrome/browser/extensions/api/autofill_private/autofill_private_api.cc View 4 chunks +8 lines, -16 lines 0 comments Download
M chrome/browser/extensions/api/input_ime/input_ime_api.cc View 3 chunks +18 lines, -15 lines 0 comments Download
M chrome/browser/extensions/api/input_ime/input_ime_api_chromeos.cc View 5 chunks +20 lines, -17 lines 0 comments Download
M chrome/browser/extensions/api/sessions/sessions_api.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.cc View 10 chunks +22 lines, -32 lines 0 comments Download
M chrome/browser/extensions/api/tabs/windows_util.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/tabs/windows_util.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/chrome_extension_function.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/chrome_extension_function.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/test/data/extensions/api_test/input_ime/background.js View 1 2 chunks +34 lines, -26 lines 0 comments Download
M extensions/browser/extension_function.h View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M extensions/browser/extension_function.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M extensions/browser/quota_service_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 24 (18 generated)
Devlin
4 years, 2 months ago (2016-10-03 18:50:20 UTC) #11
lazyboy
lgtm with one nit. https://codereview.chromium.org/2386823002/diff/20001/chrome/browser/extensions/chrome_extension_function.h File chrome/browser/extensions/chrome_extension_function.h (right): https://codereview.chromium.org/2386823002/diff/20001/chrome/browser/extensions/chrome_extension_function.h#newcode59 chrome/browser/extensions/chrome_extension_function.h:59: void SetError(const std::string& error); nit: ...
4 years, 2 months ago (2016-10-03 20:34:01 UTC) #12
Devlin
https://codereview.chromium.org/2386823002/diff/20001/chrome/browser/extensions/chrome_extension_function.h File chrome/browser/extensions/chrome_extension_function.h (right): https://codereview.chromium.org/2386823002/diff/20001/chrome/browser/extensions/chrome_extension_function.h#newcode59 chrome/browser/extensions/chrome_extension_function.h:59: void SetError(const std::string& error); On 2016/10/03 20:34:01, lazyboy wrote: ...
4 years, 2 months ago (2016-10-03 23:07:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2386823002/40001
4 years, 2 months ago (2016-10-03 23:08:32 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-03 23:15:07 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-10-03 23:17:06 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fd7bb627894ab5fc1415c90f579dba779fddc70f
Cr-Commit-Position: refs/heads/master@{#422589}

Powered by Google App Engine
This is Rietveld 408576698