| Index: tools/android/loading/cloud/frontend/clovis_frontend.py
|
| diff --git a/tools/android/loading/cloud/frontend/clovis_frontend.py b/tools/android/loading/cloud/frontend/clovis_frontend.py
|
| index 33f14d93bc0cb4379c46d585e43c73cd0ec49d4a..d41fb92cfc94228134da40fe6c8f822ceb1e1041 100644
|
| --- a/tools/android/loading/cloud/frontend/clovis_frontend.py
|
| +++ b/tools/android/loading/cloud/frontend/clovis_frontend.py
|
| @@ -170,11 +170,11 @@ def StartFromJsonString(http_body_str):
|
| # Split the task in smaller tasks.
|
| sub_tasks = []
|
| task_url = None
|
| - if task.Action() == 'trace':
|
| + if task.Action() == 'trace' or task.Action == 'report':
|
| bucket = task.BackendParams().get('storage_bucket')
|
| if bucket:
|
| task_url = 'https://console.cloud.google.com/storage/' + bucket
|
| - sub_tasks = SplitTraceTask(task)
|
| + sub_tasks = SplitTaskUrls(task)
|
| else:
|
| error_string = 'Unsupported action: %s.' % task.Action()
|
| clovis_logger.error(error_string)
|
| @@ -201,9 +201,8 @@ def StartFromJsonString(http_body_str):
|
| memory_logs)
|
|
|
|
|
| -def SplitTraceTask(task):
|
| - """Splits a tracing task with potentially many URLs into several tracing tasks
|
| - with few URLs.
|
| +def SplitTaskUrls(task):
|
| + """Splits a task with potentially many URLs into several tasks with few URLs.
|
| """
|
| clovis_logger.debug('Splitting trace task.')
|
| action_params = task.ActionParams()
|
|
|