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

Issue 11819018: [Telemetry] Clean separation between tab (public API) and tab_backend (Chrome implementation). Flat… (Closed)

Created:
7 years, 11 months ago by dtu
Modified:
7 years, 11 months ago
Reviewers:
nduca
CC:
chromium-reviews, chrome-speed-team+watch_google.com, pam+watch_chromium.org, telemetry+watch_chromium.org
Visibility:
Public.

Description

[Telemetry] Clean separation between tab (public API) and tab_backend (Chrome implementation). Flatten tab's public methods. E.g. instead of tab.page.Navigate('url') it's now tab.Navigate('url'). This makes more sense for other browsers, who won't have the same domain divisions that Chrome DevTools does; and paves the way for future organization/separation between public API and backends. BUG=None. TEST=None. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177087

Patch Set 1 #

Total comments: 10

Patch Set 2 : nduca: Rename some public API methods and move TabBackend construction. Merge. #

Patch Set 3 : Make unit tests pass and merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+457 lines, -208 lines) Patch
M tools/telemetry/telemetry/browser_backend.py View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/inspector_console.py View 3 chunks +8 lines, -8 lines 0 comments Download
M tools/telemetry/telemetry/inspector_console_unittest.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/inspector_page.py View 1 2 4 chunks +8 lines, -67 lines 0 comments Download
M tools/telemetry/telemetry/inspector_page_unittest.py View 1 2 1 chunk +0 lines, -22 lines 0 comments Download
M tools/telemetry/telemetry/inspector_runtime.py View 2 chunks +4 lines, -5 lines 0 comments Download
M tools/telemetry/telemetry/inspector_timeline.py View 1 4 chunks +9 lines, -10 lines 0 comments Download
M tools/telemetry/telemetry/page_runner.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/tab.py View 1 2 3 chunks +98 lines, -91 lines 0 comments Download
A tools/telemetry/telemetry/tab_backend.py View 1 2 1 chunk +298 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/tab_test_case.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/tab_unittest.py View 1 2 3 chunks +25 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
dtu
How does this look? Before I go about renaming all tab invocations in all of ...
7 years, 11 months ago (2013-01-09 00:57:06 UTC) #1
nduca
lgtm with tweaks https://codereview.chromium.org/11819018/diff/1/tools/telemetry/telemetry/tab.py File tools/telemetry/telemetry/tab.py (right): https://codereview.chromium.org/11819018/diff/1/tools/telemetry/telemetry/tab.py#newcode21 tools/telemetry/telemetry/tab.py:21: self._backend = tab_backend.TabBackend( Is there a ...
7 years, 11 months ago (2013-01-09 01:02:29 UTC) #2
dtu
https://codereview.chromium.org/11819018/diff/1/tools/telemetry/telemetry/tab.py File tools/telemetry/telemetry/tab.py (right): https://codereview.chromium.org/11819018/diff/1/tools/telemetry/telemetry/tab.py#newcode21 tools/telemetry/telemetry/tab.py:21: self._backend = tab_backend.TabBackend( On 2013/01/09 01:02:30, nduca wrote: > ...
7 years, 11 months ago (2013-01-09 01:21:27 UTC) #3
nduca
I'm fine with either
7 years, 11 months ago (2013-01-09 01:35:11 UTC) #4
nduca
I lie. Get timeline in there.
7 years, 11 months ago (2013-01-09 01:35:24 UTC) #5
dtu
On 2013/01/09 01:35:24, nduca wrote: > I lie. Get timeline in there. I'm gonna split ...
7 years, 11 months ago (2013-01-12 00:05:35 UTC) #6
nduca
Thats fine!
7 years, 11 months ago (2013-01-12 00:07:05 UTC) #7
nduca
How we doing here? [tab_backend should probably get renamed to be something that could be ...
7 years, 11 months ago (2013-01-15 05:29:51 UTC) #8
agable
7 years, 11 months ago (2013-01-16 21:40:57 UTC) #9
Message was sent while issue was closed.
This change has been reverted by
http://src.chromium.org/viewvc/chrome?view=rev&revision=177225. See bug at
https://code.google.com/p/chromium/issues/detail?id=170310.

Powered by Google App Engine
This is Rietveld 408576698