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

Issue 625123002: Make credential_path a page attribute instead of page_set attribute. (Closed)

Created:
6 years, 2 months ago by nednguyen
Modified:
6 years, 2 months ago
Reviewers:
slamm_google, dtu, slamm
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make credential_path a page attribute instead of page_set attribute. Rationale: + This makes _RunPage --> SharedPageState refactoring easier. + This enables combining pages from different page_sets. This patch also modifies page_set_smoke_test.py to make sure that the change doesn't break existing page sets. BUG=418278 Committed: https://crrev.com/fe3d0e5a1a1f8b0ad6985ec5b3d2e4ef890993e6 Cr-Commit-Position: refs/heads/master@{#298796}

Patch Set 1 : #

Patch Set 2 : Rebase #

Total comments: 8

Patch Set 3 : Add classes_unittest #

Total comments: 17

Patch Set 4 : Address slamm comments #

Total comments: 8

Patch Set 5 : Address review comments #

Total comments: 9

Patch Set 6 : Revert changes to path & path_unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -142 lines) Patch
M tools/perf/page_sets/calendar_forward_backward.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/gmail_alt_threadlist_conversation.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/gmail_alt_two_labels.py View 2 chunks +2 lines, -4 lines 0 comments Download
M tools/perf/page_sets/gmail_compose_discard.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/gmail_expand_collapse_conversation.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/gmail_refresh.py View 2 chunks +1 line, -4 lines 0 comments Download
M tools/perf/page_sets/key_desktop_sites.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/key_mobile_sites.py View 2 chunks +3 lines, -4 lines 0 comments Download
M tools/perf/page_sets/key_search_mobile.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/key_silk_cases.py View 1 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/mobile_memory.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/plus_alt_posts_photos.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/simple_mobile_sites.py View 2 chunks +4 lines, -3 lines 0 comments Download
M tools/perf/page_sets/top_10.py View 2 chunks +3 lines, -2 lines 0 comments Download
M tools/perf/page_sets/top_10_mobile.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/top_25.py View 2 chunks +3 lines, -3 lines 0 comments Download
M tools/perf/page_sets/top_desktop_sites_2012Q3.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/tough_compositor_cases.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/tough_energy_cases.py View 2 chunks +3 lines, -4 lines 0 comments Download
M tools/perf/page_sets/tough_layer_cases.py View 1 chunk +0 lines, -1 line 0 comments Download
M tools/perf/page_sets/tough_layout_cases.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/tough_memory_multi_tab.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/perf/page_sets/tough_pinch_zoom_cases.py View 2 chunks +3 lines, -4 lines 0 comments Download
M tools/perf/page_sets/tough_scheduling_cases.py View 2 chunks +2 lines, -3 lines 0 comments Download
M tools/telemetry/telemetry/core/browser_credentials.py View 2 chunks +7 lines, -19 lines 0 comments Download
M tools/telemetry/telemetry/core/util.py View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M tools/telemetry/telemetry/page/__init__.py View 1 2 3 4 5 4 chunks +30 lines, -3 lines 0 comments Download
M tools/telemetry/telemetry/page/page_runner.py View 1 2 3 4 9 chunks +9 lines, -30 lines 0 comments Download
M tools/telemetry/telemetry/page/page_runner_unittest.py View 1 chunk +6 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/page/page_set.py View 1 2 chunks +1 line, -3 lines 0 comments Download
M tools/telemetry/telemetry/unittest/page_set_smoke_test.py View 1 2 3 4 3 chunks +9 lines, -7 lines 0 comments Download
A tools/telemetry/telemetry/util/classes.py View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/util/classes_unittest.py View 1 2 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
nednguyen
6 years, 2 months ago (2014-10-06 17:46:32 UTC) #3
tonyg
I defer to Dave on this.
6 years, 2 months ago (2014-10-06 18:51:19 UTC) #4
slamm
Mostly nits. https://codereview.chromium.org/625123002/diff/100001/tools/telemetry/telemetry/core/util.py File tools/telemetry/telemetry/core/util.py (right): https://codereview.chromium.org/625123002/diff/100001/tools/telemetry/telemetry/core/util.py#newcode149 tools/telemetry/telemetry/core/util.py:149: """ Returns the absolute path for |path| ...
6 years, 2 months ago (2014-10-06 20:21:19 UTC) #7
nednguyen
https://codereview.chromium.org/625123002/diff/100001/tools/telemetry/telemetry/core/util.py File tools/telemetry/telemetry/core/util.py (right): https://codereview.chromium.org/625123002/diff/100001/tools/telemetry/telemetry/core/util.py#newcode149 tools/telemetry/telemetry/core/util.py:149: """ Returns the absolute path for |path| if it ...
6 years, 2 months ago (2014-10-06 20:45:51 UTC) #8
slamm_google
https://codereview.chromium.org/625123002/diff/120001/tools/telemetry/telemetry/unittest/page_set_smoke_test.py File tools/telemetry/telemetry/unittest/page_set_smoke_test.py (right): https://codereview.chromium.org/625123002/diff/120001/tools/telemetry/telemetry/unittest/page_set_smoke_test.py#newcode113 tools/telemetry/telemetry/unittest/page_set_smoke_test.py:113: raise Why is it okay to continue for classes ...
6 years, 2 months ago (2014-10-06 21:03:01 UTC) #10
dtu
https://codereview.chromium.org/625123002/diff/60001/tools/telemetry/telemetry/core/util.py File tools/telemetry/telemetry/core/util.py (right): https://codereview.chromium.org/625123002/diff/60001/tools/telemetry/telemetry/core/util.py#newcode148 tools/telemetry/telemetry/core/util.py:148: def GetAbsPathIfExist(path, base_dir): Is this the same as os.path.realpath(os.path.relpath(path, ...
6 years, 2 months ago (2014-10-06 21:30:22 UTC) #11
nednguyen
https://codereview.chromium.org/625123002/diff/60001/tools/telemetry/telemetry/core/util.py File tools/telemetry/telemetry/core/util.py (right): https://codereview.chromium.org/625123002/diff/60001/tools/telemetry/telemetry/core/util.py#newcode148 tools/telemetry/telemetry/core/util.py:148: def GetAbsPathIfExist(path, base_dir): On 2014/10/06 21:30:22, dtu wrote: > ...
6 years, 2 months ago (2014-10-07 20:11:10 UTC) #12
slamm_google
https://codereview.chromium.org/625123002/diff/140001/tools/telemetry/telemetry/unittest/page_set_smoke_test.py File tools/telemetry/telemetry/unittest/page_set_smoke_test.py (right): https://codereview.chromium.org/625123002/diff/140001/tools/telemetry/telemetry/unittest/page_set_smoke_test.py#newcode111 tools/telemetry/telemetry/unittest/page_set_smoke_test.py:111: # don't know what arguments to put for the ...
6 years, 2 months ago (2014-10-07 22:45:36 UTC) #13
slamm_google
https://codereview.chromium.org/625123002/diff/140001/tools/telemetry/telemetry/util/path_unittest.py File tools/telemetry/telemetry/util/path_unittest.py (right): https://codereview.chromium.org/625123002/diff/140001/tools/telemetry/telemetry/util/path_unittest.py#newcode28 tools/telemetry/telemetry/util/path_unittest.py:28: You can keep the setUp/tearDown specific to these new ...
6 years, 2 months ago (2014-10-07 22:55:11 UTC) #14
nednguyen
https://codereview.chromium.org/625123002/diff/140001/tools/telemetry/telemetry/util/path.py File tools/telemetry/telemetry/util/path.py (right): https://codereview.chromium.org/625123002/diff/140001/tools/telemetry/telemetry/util/path.py#newcode62 tools/telemetry/telemetry/util/path.py:62: abs_path = os.path.join(base_dir, path) On 2014/10/07 22:45:34, slamm_google wrote: ...
6 years, 2 months ago (2014-10-08 02:04:47 UTC) #16
dtu
lgtm https://codereview.chromium.org/625123002/diff/60001/tools/telemetry/telemetry/core/util.py File tools/telemetry/telemetry/core/util.py (right): https://codereview.chromium.org/625123002/diff/60001/tools/telemetry/telemetry/core/util.py#newcode148 tools/telemetry/telemetry/core/util.py:148: def GetAbsPathIfExist(path, base_dir): On 2014/10/07 20:11:09, nednguyen wrote: ...
6 years, 2 months ago (2014-10-08 21:34:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/625123002/180001
6 years, 2 months ago (2014-10-08 21:57:05 UTC) #20
slamm
lgtm
6 years, 2 months ago (2014-10-08 22:46:17 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:180001) as a42e7312e1147153bb0eb1dece71191bb031b837
6 years, 2 months ago (2014-10-09 04:55:43 UTC) #22
commit-bot: I haz the power
6 years, 2 months ago (2014-10-09 04:56:55 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/fe3d0e5a1a1f8b0ad6985ec5b3d2e4ef890993e6
Cr-Commit-Position: refs/heads/master@{#298796}

Powered by Google App Engine
This is Rietveld 408576698