Merge _PageState to _RunState in page_runner.py
commit32943ec796c9c235fae4048b00a73bb3fcd140f9
authornednguyen <nednguyen@google.com>
Tue, 14 Oct 2014 03:50:48 +0000 (13 20:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 14 Oct 2014 03:51:03 +0000 (14 03:51 +0000)
treecf6aff045cfbdaeb201fefc1d8f6a3bbac9edfba
parent876eff89f419e782bbaa6876552c2750c093fe2b
Merge _PageState to _RunState in page_runner.py

The motivation behind this merge is to create a single place
that manages the browser & tab state before running multiple
page, before running each page, after running each page, and
after running multiple pages. Next patches will refactor
this _RunState object to SharedPageState as planned in
https://docs.google.com/a/google.com/document/d/1on2ATPE8Y7a0SLcd4cl3nAiSthVpVLU6OoVZatEavEA/edit.

Besides the merging of PageState and RunState, this patch
also renames _RunPage -> _RunPageAndProcessErrorIfNeeded
and _PrepareAndRunPage -> _RunPageAndRetryRunIfNeeded to
clear up the distinction what each of these functions does.

BUG=418278

Review URL: https://codereview.chromium.org/652813002

Cr-Commit-Position: refs/heads/master@{#299425}
tools/telemetry/telemetry/page/page_runner.py