summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorjbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-07 23:00:30 +0000
committerjbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-07 23:00:30 +0000
commit31cee2c4aa51b30ed1cf9f970bc2caa6b86575c6 (patch)
tree425380687b0d89212042307ba0852eaadb2d492e /chrome/common
parentc5fb1a380033869408367411b2aaf925df58c11b (diff)
downloadchromium_src-31cee2c4aa51b30ed1cf9f970bc2caa6b86575c6.zip
chromium_src-31cee2c4aa51b30ed1cf9f970bc2caa6b86575c6.tar.gz
chromium_src-31cee2c4aa51b30ed1cf9f970bc2caa6b86575c6.tar.bz2
Don't return error from EndTracing when there are no events.
Review URL: http://codereview.chromium.org/8456002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108933 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/automation_messages_internal.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/common/automation_messages_internal.h b/chrome/common/automation_messages_internal.h
index aa59612..35f75c0 100644
--- a/chrome/common/automation_messages_internal.h
+++ b/chrome/common/automation_messages_internal.h
@@ -1484,16 +1484,18 @@ IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_BeginTracing,
// End tracing (called after BeginTracing). This blocks until tracing has
// stopped on all processes and all the events are ready to be retrieved.
-IPC_SYNC_MESSAGE_CONTROL0_1(AutomationMsg_EndTracing,
+IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_EndTracing,
+ size_t /* num_trace_chunks */,
bool /* success */)
-// Retrieve trace event data (called after EndTracing). Must keep calling until
-// remaining_chunks is 0.
+// Retrieve trace event data (called after EndTracing). Must call exactly
+// |num_trace_chunks| times.
// TODO(jbates): See bug 100255, IPC send fails if message is too big. This
// code can be removed if that limitation is fixed.
IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_GetTracingOutput,
std::string /* trace_chunk */,
- int /* remaining_chunks */)
+ bool /* success */)
+
// Browser -> renderer messages.
// Requests a snapshot.