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

Issue 161473002: [Android] Don't wait for background tabs (Closed)

Created:
6 years, 10 months ago by aberent
Modified:
6 years, 10 months ago
Reviewers:
tonyg, jeremy
CC:
chromium-reviews, chrome-speed-team+watch_google.com, jeremy, rmcilroy
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Android] Don't wait for background tabs The session restore tests were timing out on Android. This was because they were waiting for the background tabs to be loaded, which they would not be in normal startup. The only reason the test worked at all is that when devtools accessed the background tabs this forced them to be loaded. This changes the test to only wait for, and to only measure, the foreground tab. NOTRY=true BUG=343168, 343900 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251364

Patch Set 1 #

Total comments: 5

Patch Set 2 : Changes for comments #

Patch Set 3 : Fix commit message #

Total comments: 6

Patch Set 4 : Fix finding foreground tab, and fix nits #

Total comments: 7

Patch Set 5 : Fix tonyg@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -39 lines) Patch
M tools/perf/measurements/session_restore.py View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M tools/perf/metrics/startup_metric.py View 1 2 3 2 chunks +16 lines, -35 lines 0 comments Download
M tools/telemetry/telemetry/core/browser.py View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
aberent
6 years, 10 months ago (2014-02-12 22:03:22 UTC) #1
tonyg
https://codereview.chromium.org/161473002/diff/1/tools/perf/measurements/session_restore.py File tools/perf/measurements/session_restore.py (right): https://codereview.chromium.org/161473002/diff/1/tools/perf/measurements/session_restore.py#newcode54 tools/perf/measurements/session_restore.py:54: if 'android' in tab.browser.browser_type: I don't like defining the ...
6 years, 10 months ago (2014-02-12 22:25:57 UTC) #2
jeremy
Agree with Tony that we should just have the Android behavior on all platforms. https://codereview.chromium.org/161473002/diff/1/tools/perf/measurements/session_restore.py ...
6 years, 10 months ago (2014-02-13 09:40:14 UTC) #3
aberent
https://codereview.chromium.org/161473002/diff/1/tools/perf/measurements/session_restore.py File tools/perf/measurements/session_restore.py (right): https://codereview.chromium.org/161473002/diff/1/tools/perf/measurements/session_restore.py#newcode54 tools/perf/measurements/session_restore.py:54: if 'android' in tab.browser.browser_type: On 2014/02/12 22:25:57, tonyg wrote: ...
6 years, 10 months ago (2014-02-13 11:37:42 UTC) #4
jeremy
https://codereview.chromium.org/161473002/diff/120001/tools/perf/measurements/session_restore.py File tools/perf/measurements/session_restore.py (right): https://codereview.chromium.org/161473002/diff/120001/tools/perf/measurements/session_restore.py#newcode59 tools/perf/measurements/session_restore.py:59: t = tab.browser.tabs[0] Looks like we have no way ...
6 years, 10 months ago (2014-02-13 13:35:26 UTC) #5
aberent
https://codereview.chromium.org/161473002/diff/120001/tools/perf/measurements/session_restore.py File tools/perf/measurements/session_restore.py (right): https://codereview.chromium.org/161473002/diff/120001/tools/perf/measurements/session_restore.py#newcode59 tools/perf/measurements/session_restore.py:59: t = tab.browser.tabs[0] On 2014/02/13 13:35:26, jeremy wrote: > ...
6 years, 10 months ago (2014-02-13 15:59:29 UTC) #6
tonyg
lgtm https://codereview.chromium.org/161473002/diff/190001/tools/telemetry/telemetry/core/browser.py File tools/telemetry/telemetry/core/browser.py (right): https://codereview.chromium.org/161473002/diff/190001/tools/telemetry/telemetry/core/browser.py#newcode397 tools/telemetry/telemetry/core/browser.py:397: def foreground_tab(self): Let's move this up to appear ...
6 years, 10 months ago (2014-02-14 16:05:41 UTC) #7
aberent
New patch set, which I will land, follows once I have retested these changes. https://codereview.chromium.org/161473002/diff/190001/tools/telemetry/telemetry/core/browser.py ...
6 years, 10 months ago (2014-02-14 16:43:36 UTC) #8
aberent
The CQ bit was checked by aberent@chromium.org
6 years, 10 months ago (2014-02-14 17:26:49 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aberent@chromium.org/161473002/260001
6 years, 10 months ago (2014-02-14 17:27:55 UTC) #10
commit-bot: I haz the power
6 years, 10 months ago (2014-02-14 17:34:16 UTC) #11
Message was sent while issue was closed.
Change committed as 251364

Powered by Google App Engine
This is Rietveld 408576698