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

Issue 1958033003: Allows client to access auth token from command line specified file. (Closed)

Created:
4 years, 7 months ago by CJ
Modified:
4 years, 7 months ago
Reviewers:
nyquist, Kevin M
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allows client to access auth token from command line specified file. This change allows the client obtain the auth token from the file specified on the command line just as the server does. Because the functionality would be very similar, this was pulled out and placed in the common directory. This allows the code to move away from a hard-coded auth token, and gives the developer the freedom to specify the auth token, as one has the power to do now on the server. Other changes: * Moved code from blimp_engine_config_unittest.cc into fake_commandline.cc and fake_commandline.h to make fake command line functionality accessible to both client and server code. * Updated blimp_engine_config_unittest.cc and assignment_source_unittest.cc to use fake_commandline.cc functionality to create fake command lines. * Updated blimp_browser_test.cc to use get_client_token:GetClientToken() to maintain consistency. BUG=610398 Committed: https://crrev.com/f16b3ac745768029718fbbc7cd288453677e49e8 Cr-Commit-Position: refs/heads/master@{#393890}

Patch Set 1 #

Total comments: 37

Patch Set 2 : addressed kmarshall's comments #

Total comments: 19

Patch Set 3 : Addresses marshallk's comments on assignment_source_unittest.cc #

Patch Set 4 : Fixes include #

Patch Set 5 : Unaddressed comment fixed for assignment_source_unittest.cc #

Patch Set 6 : Addresses the rest of kmarshall's #7 comments #

Total comments: 4

Patch Set 7 : Addresses kmarshall's #12 comments #

Patch Set 8 : Fixes errors #

Patch Set 9 : Fixes analyze #

Patch Set 10 : Adds data dependancy to BUILD #

Patch Set 11 : Adds documentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -88 lines) Patch
M blimp/client/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -1 line 0 comments Download
M blimp/client/session/assignment_source.h View 1 chunk +0 lines, -3 lines 0 comments Download
M blimp/client/session/assignment_source.cc View 1 2 3 4 4 chunks +11 lines, -12 lines 0 comments Download
M blimp/client/session/assignment_source_unittest.cc View 1 2 3 4 5 6 7 6 chunks +27 lines, -16 lines 0 comments Download
M blimp/common/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
A blimp/common/get_client_token.h View 1 1 chunk +22 lines, -0 lines 0 comments Download
A blimp/common/get_client_token.cc View 1 2 1 chunk +23 lines, -0 lines 0 comments Download
A blimp/common/switches.h View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
A + blimp/common/switches.cc View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M blimp/docs/running.md View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -23 lines 0 comments Download
M blimp/engine/BUILD.gn View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M blimp/engine/app/blimp_engine_config.cc View 1 2 3 4 5 2 chunks +1 line, -15 lines 0 comments Download
M blimp/engine/app/blimp_engine_config_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
D blimp/engine/app/switches.h View 1 2 3 4 5 2 chunks +1 line, -4 lines 0 comments Download
D blimp/engine/app/switches.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M blimp/engine/app/ui/blimp_screen_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M blimp/test/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M blimp/test/browser_tests/blimp_browser_test.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 51 (23 generated)
CJ
+marshallk For initial review
4 years, 7 months ago (2016-05-10 00:48:09 UTC) #2
Kevin M
A good start so far! LMK if you have questions about any of these feedback ...
4 years, 7 months ago (2016-05-10 18:06:35 UTC) #5
CJ
#For practice. Allows client to access auth token from command line specified file. This change ...
4 years, 7 months ago (2016-05-10 20:58:07 UTC) #6
Kevin M
https://codereview.chromium.org/1958033003/diff/1/blimp/client/session/assignment_source_unittest.cc File blimp/client/session/assignment_source_unittest.cc (right): https://codereview.chromium.org/1958033003/diff/1/blimp/client/session/assignment_source_unittest.cc#newcode87 blimp/client/session/assignment_source_unittest.cc:87: ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); On 2016/05/10 20:58:06, lethalantidote wrote: > It exists ...
4 years, 7 months ago (2016-05-11 00:39:57 UTC) #7
Kevin M
New CL subject and body text look good to me, go ahead and update the ...
4 years, 7 months ago (2016-05-11 00:41:08 UTC) #8
CJ
Addresses marshallk's comments on assignment_source_unittest.cc. Feedback on this file may change approach on feedback from ...
4 years, 7 months ago (2016-05-11 21:49:30 UTC) #10
CJ
Addresses the rest of kmarshalls #7 comments https://codereview.chromium.org/1958033003/diff/20001/blimp/client/session/assignment_source_unittest.cc File blimp/client/session/assignment_source_unittest.cc (right): https://codereview.chromium.org/1958033003/diff/20001/blimp/client/session/assignment_source_unittest.cc#newcode87 blimp/client/session/assignment_source_unittest.cc:87: ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); On ...
4 years, 7 months ago (2016-05-11 23:48:50 UTC) #11
Kevin M
lgtm Awesome! Click the "Commit" checkbox on the CL once you've addressed the final changes ...
4 years, 7 months ago (2016-05-12 17:44:44 UTC) #12
CJ
Issues addressed. Will commit after running tests on device. https://codereview.chromium.org/1958033003/diff/100001/blimp/client/session/assignment_source_unittest.cc File blimp/client/session/assignment_source_unittest.cc (right): https://codereview.chromium.org/1958033003/diff/100001/blimp/client/session/assignment_source_unittest.cc#newcode212 blimp/client/session/assignment_source_unittest.cc:212: ...
4 years, 7 months ago (2016-05-12 18:09:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1958033003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1958033003/120001
4 years, 7 months ago (2016-05-12 18:38:15 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1958033003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1958033003/120001
4 years, 7 months ago (2016-05-12 18:39:05 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1958033003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1958033003/120001
4 years, 7 months ago (2016-05-12 23:36:34 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/228166)
4 years, 7 months ago (2016-05-12 23:52:30 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1958033003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1958033003/140001
4 years, 7 months ago (2016-05-13 00:16:17 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/136651) linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 7 months ago (2016-05-13 00:21:07 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1958033003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1958033003/160001
4 years, 7 months ago (2016-05-13 00:45:26 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/228204)
4 years, 7 months ago (2016-05-13 01:57:57 UTC) #34
nyquist
Please remember to put the subject from the code review as the first line in ...
4 years, 7 months ago (2016-05-13 17:14:50 UTC) #36
CJ
On 2016/05/13 17:14:50, nyquist wrote: > Please remember to put the subject from the code ...
4 years, 7 months ago (2016-05-13 20:34:43 UTC) #38
CJ
4 years, 7 months ago (2016-05-13 20:35:00 UTC) #39
nyquist
Almost, just remove the issue-number. Just start with "Allows..."
4 years, 7 months ago (2016-05-13 20:35:39 UTC) #40
CJ
On 2016/05/13 20:35:39, nyquist wrote: > Almost, just remove the issue-number. Just start with "Allows..." ...
4 years, 7 months ago (2016-05-13 20:37:07 UTC) #42
CJ
Hello, I have updated running.md. Please let me know if there should be any changes. ...
4 years, 7 months ago (2016-05-13 22:50:16 UTC) #43
chromium-reviews
Not sure why or how running.md got auto-linked to something random. Please ignore. On Fri, ...
4 years, 7 months ago (2016-05-13 22:52:13 UTC) #44
Kevin M
still lgtm !
4 years, 7 months ago (2016-05-16 17:58:18 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1958033003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1958033003/200001
4 years, 7 months ago (2016-05-16 18:02:24 UTC) #47
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 7 months ago (2016-05-16 19:07:10 UTC) #49
commit-bot: I haz the power
4 years, 7 months ago (2016-05-16 19:08:13 UTC) #51
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/f16b3ac745768029718fbbc7cd288453677e49e8
Cr-Commit-Position: refs/heads/master@{#393890}

Powered by Google App Engine
This is Rietveld 408576698