summaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-22 05:29:52 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-22 05:29:52 +0000
commita0b2c3333579e6072af5111e8abb2e6ef3c42792 (patch)
tree2bfb79e567476e2c55cabbe80f13355c9c26e541 /cc
parent40981da2351fe7fa1eef933578c8ca961ff8ed79 (diff)
downloadchromium_src-a0b2c3333579e6072af5111e8abb2e6ef3c42792.zip
chromium_src-a0b2c3333579e6072af5111e8abb2e6ef3c42792.tar.gz
chromium_src-a0b2c3333579e6072af5111e8abb2e6ef3c42792.tar.bz2
cc: Show success or failure in the trace event for CopyOutputRequest.
R=piman Review URL: https://codereview.chromium.org/298863004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc')
-rw-r--r--cc/output/copy_output_request.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/output/copy_output_request.cc b/cc/output/copy_output_request.cc
index 2d42fa9..97b95e1 100644
--- a/cc/output/copy_output_request.cc
+++ b/cc/output/copy_output_request.cc
@@ -46,8 +46,9 @@ CopyOutputRequest::~CopyOutputRequest() {
}
void CopyOutputRequest::SendResult(scoped_ptr<CopyOutputResult> result) {
+ bool success = !result->IsEmpty();
base::ResetAndReturn(&result_callback_).Run(result.Pass());
- TRACE_EVENT_ASYNC_END0("cc", "CopyOutputRequest", this);
+ TRACE_EVENT_ASYNC_END1("cc", "CopyOutputRequest", this, "success", success);
}
void CopyOutputRequest::SendEmptyResult() {