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

Issue 10914237: Port perf.py's _LoginToGoogleAccount to chrome_remote_control (Closed)

Created:
8 years, 3 months ago by hartmanng
Modified:
8 years, 2 months ago
Reviewers:
dtu, Ian Vollick, nduca, tonyg
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Port perf.py's _LoginToGoogleAccount to chrome_remote_control Added LoginToGoogleAccount functionality into chrome_remote_control, letting us use it in run_scrolling_benchmark. BUG=147612 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159858

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 25

Patch Set 3 : fixes and unit tests #

Total comments: 4

Patch Set 4 : #

Total comments: 12

Patch Set 5 : #

Total comments: 8

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+426 lines, -8 lines) Patch
M tools/chrome_remote_control/chrome_remote_control/browser.py View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
A tools/chrome_remote_control/chrome_remote_control/browser_credentials.py View 1 2 3 4 5 1 chunk +59 lines, -0 lines 0 comments Download
A tools/chrome_remote_control/chrome_remote_control/browser_credentials_unittest.py View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
A tools/chrome_remote_control/chrome_remote_control/credentials_backend.py View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
A tools/chrome_remote_control/chrome_remote_control/credentials_backend_unittest.py View 1 2 3 4 5 6 1 chunk +124 lines, -0 lines 0 comments Download
A tools/chrome_remote_control/chrome_remote_control/google_credentials_backend.py View 1 2 3 4 5 1 chunk +84 lines, -0 lines 0 comments Download
A tools/chrome_remote_control/chrome_remote_control/google_credentials_backend_unittest.py View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/page_runner.py View 1 2 3 4 5 5 chunks +9 lines, -4 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/page_set.py View 1 2 3 4 5 3 chunks +15 lines, -4 lines 0 comments Download
M tools/chrome_remote_control/chrome_remote_control/tab.py View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M tools/gpu/page_sets/2012Q3.json View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A tools/gpu/page_sets/credentials.json View 1 1 chunk +6 lines, -0 lines 0 comments Download
M tools/gpu/page_sets/top_25.json View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
hartmanng
Please take a look. Note that currently, if you want to log into a Google ...
8 years, 3 months ago (2012-09-12 19:57:22 UTC) #1
nduca
https://chromiumcodereview.appspot.com/10914237/diff/1/tools/chrome_remote_control/chrome_remote_control/desktop_browser_backend.py File tools/chrome_remote_control/chrome_remote_control/desktop_browser_backend.py (right): https://chromiumcodereview.appspot.com/10914237/diff/1/tools/chrome_remote_control/chrome_remote_control/desktop_browser_backend.py#newcode63 tools/chrome_remote_control/chrome_remote_control/desktop_browser_backend.py:63: """Return eval of python code from given file. Lets ...
8 years, 3 months ago (2012-09-14 17:18:36 UTC) #2
nduca
Also whats this perf.cfg thing?
8 years, 3 months ago (2012-09-14 17:19:03 UTC) #3
hartmanng
On 2012/09/14 17:18:36, nduca wrote: > https://chromiumcodereview.appspot.com/10914237/diff/1/tools/chrome_remote_control/chrome_remote_control/desktop_browser_backend.py > File > tools/chrome_remote_control/chrome_remote_control/desktop_browser_backend.py > (right): > > ...
8 years, 3 months ago (2012-09-14 23:48:30 UTC) #4
nduca
> I think all this makes sense, but I feel like it could result in ...
8 years, 3 months ago (2012-09-15 00:23:32 UTC) #5
nduca
Oh i see, perf.cfg is some json object. We should do this right: - the ...
8 years, 3 months ago (2012-09-15 00:26:42 UTC) #6
hartmanng
On 2012/09/15 00:26:42, nduca wrote: > Oh i see, perf.cfg is some json object. We ...
8 years, 3 months ago (2012-09-15 00:32:47 UTC) #7
nduca
On 2012/09/15 00:32:47, hartmanng wrote: > It's actually interpreted as python (via eval()), effectively it ...
8 years, 3 months ago (2012-09-15 00:56:03 UTC) #8
hartmanng
On 2012/09/15 00:56:03, nduca wrote: > On 2012/09/15 00:32:47, hartmanng wrote: > > > It's ...
8 years, 3 months ago (2012-09-17 13:09:29 UTC) #9
nduca
Hey glenn: @dtu's page_runner patch has landed so we should be able to resume work ...
8 years, 3 months ago (2012-09-21 07:07:04 UTC) #10
hartmanng
Hey Nat, I think this might be more what you were looking for. Please take ...
8 years, 3 months ago (2012-09-23 23:40:55 UTC) #11
nduca
This looks really nice. - credentials are shared across tabs. So, the state for credentials ...
8 years, 3 months ago (2012-09-24 20:30:26 UTC) #12
tonyg
http://codereview.chromium.org/10914237/diff/9001/tools/chrome_remote_control/chrome_remote_control/credentials_backend.py File tools/chrome_remote_control/chrome_remote_control/credentials_backend.py (right): http://codereview.chromium.org/10914237/diff/9001/tools/chrome_remote_control/chrome_remote_control/credentials_backend.py#newcode23 tools/chrome_remote_control/chrome_remote_control/credentials_backend.py:23: contents = f.read() extra space before = http://codereview.chromium.org/10914237/diff/9001/tools/chrome_remote_control/chrome_remote_control/credentials_backend.py#newcode46 tools/chrome_remote_control/chrome_remote_control/credentials_backend.py:46: ...
8 years, 3 months ago (2012-09-24 20:41:01 UTC) #13
nduca
http://codereview.chromium.org/10914237/diff/9001/tools/gpu/page_sets/credentials.json File tools/gpu/page_sets/credentials.json (right): http://codereview.chromium.org/10914237/diff/9001/tools/gpu/page_sets/credentials.json#newcode3 tools/gpu/page_sets/credentials.json:3: "google_password": null, I think this is just an example ...
8 years, 3 months ago (2012-09-24 20:50:00 UTC) #14
dtu
https://chromiumcodereview.appspot.com/10914237/diff/9001/tools/chrome_remote_control/chrome_remote_control/credentials_backend.py File tools/chrome_remote_control/chrome_remote_control/credentials_backend.py (right): https://chromiumcodereview.appspot.com/10914237/diff/9001/tools/chrome_remote_control/chrome_remote_control/credentials_backend.py#newcode14 tools/chrome_remote_control/chrome_remote_control/credentials_backend.py:14: pass raise NotImplementedError() is the Pythonic way of defining ...
8 years, 3 months ago (2012-09-24 21:35:10 UTC) #15
dtu
https://chromiumcodereview.appspot.com/10914237/diff/9001/tools/chrome_remote_control/chrome_remote_control/tab_credentials.py File tools/chrome_remote_control/chrome_remote_control/tab_credentials.py (right): https://chromiumcodereview.appspot.com/10914237/diff/9001/tools/chrome_remote_control/chrome_remote_control/tab_credentials.py#newcode1 tools/chrome_remote_control/chrome_remote_control/tab_credentials.py:1: # Copyright (c) 2012 The Chromium Authors. All rights ...
8 years, 3 months ago (2012-09-24 21:50:01 UTC) #16
Ian Vollick
http://codereview.chromium.org/10914237/diff/9001/tools/chrome_remote_control/chrome_remote_control/credentials_backend.py File tools/chrome_remote_control/chrome_remote_control/credentials_backend.py (right): http://codereview.chromium.org/10914237/diff/9001/tools/chrome_remote_control/chrome_remote_control/credentials_backend.py#newcode10 tools/chrome_remote_control/chrome_remote_control/credentials_backend.py:10: _config_file = 'page_sets/credentials.json' This makes an assumption about where ...
8 years, 3 months ago (2012-09-25 02:00:41 UTC) #17
nduca
http://codereview.chromium.org/10914237/diff/9001/tools/chrome_remote_control/chrome_remote_control/credentials_backend.py File tools/chrome_remote_control/chrome_remote_control/credentials_backend.py (right): http://codereview.chromium.org/10914237/diff/9001/tools/chrome_remote_control/chrome_remote_control/credentials_backend.py#newcode10 tools/chrome_remote_control/chrome_remote_control/credentials_backend.py:10: _config_file = 'page_sets/credentials.json' ah good point. The right way ...
8 years, 3 months ago (2012-09-25 02:36:07 UTC) #18
Ian Vollick
Sorry for the spam. Noticed something else. http://codereview.chromium.org/10914237/diff/9001/tools/chrome_remote_control/chrome_remote_control/page_runner.py File tools/chrome_remote_control/chrome_remote_control/page_runner.py (right): http://codereview.chromium.org/10914237/diff/9001/tools/chrome_remote_control/chrome_remote_control/page_runner.py#newcode45 tools/chrome_remote_control/chrome_remote_control/page_runner.py:45: tab.credentials.LoginNoLongerNeeded(page.credentials) This ...
8 years, 3 months ago (2012-09-25 03:00:18 UTC) #19
Ian Vollick
On 2012/09/25 03:00:18, vollick wrote: > Sorry for the spam. Noticed something else. > > ...
8 years, 3 months ago (2012-09-25 03:02:43 UTC) #20
hartmanng
I think I've addressed all the issues, if I missed something please let me know. ...
8 years, 2 months ago (2012-09-26 22:06:15 UTC) #21
nduca
Getting there! I'm very sorry for the delayed review... http://codereview.chromium.org/10914237/diff/18010/tools/chrome_remote_control/chrome_remote_control/credentials_backend.py File tools/chrome_remote_control/chrome_remote_control/credentials_backend.py (right): http://codereview.chromium.org/10914237/diff/18010/tools/chrome_remote_control/chrome_remote_control/credentials_backend.py#newcode12 tools/chrome_remote_control/chrome_remote_control/credentials_backend.py:12: ...
8 years, 2 months ago (2012-10-02 03:49:11 UTC) #22
hartmanng
PTAL In addition to your comments, I also fixed a bunch of pylint issues (which ...
8 years, 2 months ago (2012-10-02 17:24:45 UTC) #23
nduca
http://codereview.chromium.org/10914237/diff/30001/tools/chrome_remote_control/chrome_remote_control/page_runner.py File tools/chrome_remote_control/chrome_remote_control/page_runner.py (right): http://codereview.chromium.org/10914237/diff/30001/tools/chrome_remote_control/chrome_remote_control/page_runner.py#newcode30 tools/chrome_remote_control/chrome_remote_control/page_runner.py:30: credentials_backend.CredentialsBackend.SetCredentialsConfigFile( Why are you making this a static method? ...
8 years, 2 months ago (2012-10-02 18:02:10 UTC) #24
hartmanng
PTAL http://codereview.chromium.org/10914237/diff/30001/tools/chrome_remote_control/chrome_remote_control/page_runner.py File tools/chrome_remote_control/chrome_remote_control/page_runner.py (right): http://codereview.chromium.org/10914237/diff/30001/tools/chrome_remote_control/chrome_remote_control/page_runner.py#newcode30 tools/chrome_remote_control/chrome_remote_control/page_runner.py:30: credentials_backend.CredentialsBackend.SetCredentialsConfigFile( On 2012/10/02 18:02:10, nduca wrote: > Why ...
8 years, 2 months ago (2012-10-02 20:18:16 UTC) #25
nduca
http://codereview.chromium.org/10914237/diff/39001/tools/chrome_remote_control/chrome_remote_control/browser.py File tools/chrome_remote_control/chrome_remote_control/browser.py (right): http://codereview.chromium.org/10914237/diff/39001/tools/chrome_remote_control/chrome_remote_control/browser.py#newcode50 tools/chrome_remote_control/chrome_remote_control/browser.py:50: def LoginNeeded(self, credentials_type, tab): Not sure you really need ...
8 years, 2 months ago (2012-10-02 20:41:49 UTC) #26
hartmanng
http://codereview.chromium.org/10914237/diff/39001/tools/chrome_remote_control/chrome_remote_control/browser.py File tools/chrome_remote_control/chrome_remote_control/browser.py (right): http://codereview.chromium.org/10914237/diff/39001/tools/chrome_remote_control/chrome_remote_control/browser.py#newcode50 tools/chrome_remote_control/chrome_remote_control/browser.py:50: def LoginNeeded(self, credentials_type, tab): On 2012/10/02 20:41:49, nduca wrote: ...
8 years, 2 months ago (2012-10-02 21:41:06 UTC) #27
nduca
LGTM please land ASAP so I can make some changes to this. I'm not quite ...
8 years, 2 months ago (2012-10-03 02:09:30 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hartmanng@chromium.org/10914237/44006
8 years, 2 months ago (2012-10-03 02:13:11 UTC) #29
commit-bot: I haz the power
Presubmit check for 10914237-44006 failed and returned exit status 1. ************* Module chrome_remote_control.credentials_backend_unittest E1101: 51,4:TestCredentialsBackend.testSubmitForm: ...
8 years, 2 months ago (2012-10-03 02:13:23 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hartmanng@chromium.org/10914237/52021
8 years, 2 months ago (2012-10-03 02:20:22 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hartmanng@chromium.org/10914237/52021
8 years, 2 months ago (2012-10-03 06:47:55 UTC) #32
commit-bot: I haz the power
8 years, 2 months ago (2012-10-03 06:48:26 UTC) #33
Change committed as 159858

Powered by Google App Engine
This is Rietveld 408576698