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

Issue 2351823004: [Extensions] Consolidate ExtensionFunction::SendResponse()s (Closed)

Created:
4 years, 3 months ago by Devlin
Modified:
4 years, 3 months ago
Reviewers:
lazyboy
CC:
chromium-reviews, extensions-reviews_chromium.org, yamaguchi+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Consolidate ExtensionFunction::SendResponse()s De-virtualize ExtensionFunction::SendResponse() and contain all work in a single SendResponseImpl()* method, which is private to ExtensionFunction and can only be invoked through the Respond() methods. This is a first step in isolating results_, error_, and the response invocation in order to ensure consistent and clear results from functions. Update UIThreadExtensionFunction implementations that used SendResponse() rather than Respond(). For compatibility, introduce SendResponse() methods on legacy ExtensionFunction classes (ChromeUIThreadExtensionFunction and AsyncExtensionFunction) which wrap around Respond(). As functions are converted, this wrapper will go away. Also remove the unused ExtensionFunction::OnRespondingLater(). *SendResponseImpl() instead of SendResponse() so that we don't have to rename existing calls in legacy functions. BUG=648275 Committed: https://crrev.com/eedb95b1a034bb392ed83e84ee690395a0db3e27 Cr-Commit-Position: refs/heads/master@{#419955}

Patch Set 1 #

Patch Set 2 : ready #

Total comments: 6

Patch Set 3 : lazyboy's #

Messages

Total messages: 25 (18 generated)
Devlin
Mind taking a quick look?
4 years, 3 months ago (2016-09-20 18:19:17 UTC) #11
lazyboy
https://codereview.chromium.org/2351823004/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_base.h File chrome/browser/chromeos/extensions/file_manager/private_api_base.h (right): https://codereview.chromium.org/2351823004/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_base.h#newcode22 chrome/browser/chromeos/extensions/file_manager/private_api_base.h:22: // very slow. See the implementation of SendResponse() for ...
4 years, 3 months ago (2016-09-20 20:21:33 UTC) #12
Devlin
https://codereview.chromium.org/2351823004/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_base.h File chrome/browser/chromeos/extensions/file_manager/private_api_base.h (right): https://codereview.chromium.org/2351823004/diff/20001/chrome/browser/chromeos/extensions/file_manager/private_api_base.h#newcode22 chrome/browser/chromeos/extensions/file_manager/private_api_base.h:22: // very slow. See the implementation of SendResponse() for ...
4 years, 3 months ago (2016-09-20 21:51:05 UTC) #14
lazyboy
missed your response, lgtm.
4 years, 3 months ago (2016-09-21 01:10:53 UTC) #15
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/2351823004/40001
4 years, 3 months ago (2016-09-21 02:35:55 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-21 02:41:35 UTC) #23
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 02:43:57 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/eedb95b1a034bb392ed83e84ee690395a0db3e27
Cr-Commit-Position: refs/heads/master@{#419955}

Powered by Google App Engine
This is Rietveld 408576698