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

Issue 418043002: Add test for showing confirmation dialog for unsecure signin (Closed)

Created:
6 years, 5 months ago by guohui
Modified:
6 years, 3 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, zea+watch_chromium.org, sievers+watch_chromium.org, yukishiino+watch_chromium.org, yusukes+watch_chromium.org, arv+watch_chromium.org, stevenjb+watch_chromium.org, miu+watch_chromium.org, tim+watch_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, haitaol+watch_chromium.org, penghuang+watch_chromium.org, oshima+watch_chromium.org, piman+watch_chromium.org, maniscalco+watch_chromium.org, James Su, davemoore+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Followup of https://codereview.chromium.org/317093002/. This CL adds tests for showing confirmation dialog for unsecure signin. As prerequisite, this CL also, 1. changes the signin continue url to a local page in the gaia auth extension. 2. adds LoginUiService::Observer events for showing signin confirmation dialog for unsecure signin. 3. fixes broken methods in FakeGaia BUG=368905 Committed: https://crrev.com/4bdcf21dcc119bdf3bea37e4a97e6ef0c05517bb Cr-Commit-Position: refs/heads/master@{#293572}

Patch Set 1 : #

Total comments: 14

Patch Set 2 : added comments #

Total comments: 12

Patch Set 3 : comments addressed #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : fix EmbeddedTestServer on windows #

Total comments: 3

Patch Set 6 : call WatchSocket in HttpListenSocket::Listen #

Patch Set 7 : trybot errors fixed #

Total comments: 2

Patch Set 8 : remove duplicate code in embedded_test_server #

Patch Set 9 : fix cros bot #

Patch Set 10 : rebased #

Patch Set 11 : fixed flaky bots #

Patch Set 12 : fix isolate dependency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -63 lines) Patch
M chrome/browser/chromeos/login/saml/saml_browsertest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +9 lines, -29 lines 0 comments Download
M chrome/browser/extensions/signin/gaia_auth_extension_loader.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/signin/gaia_auth_extension_loader.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/resources/gaia_auth/background.js View 1 2 3 4 5 6 chunks +7 lines, -10 lines 0 comments Download
M chrome/browser/resources/gaia_auth/main.js View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_promo.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/oobe_ui.cc View 1 2 3 4 5 6 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_handler_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +83 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/login_ui_service.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/signin/login_ui_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser_tests.isolate View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -1 line 0 comments Download
M google_apis/gaia/fake_gaia.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M google_apis/gaia/fake_gaia.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +51 lines, -4 lines 0 comments Download
M net/test/embedded_test_server/embedded_test_server.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M net/test/embedded_test_server/embedded_test_server.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 64 (19 generated)
guohui
Hey, could you please take a look at the CL? rogerta@ for the overall CL ...
6 years, 5 months ago (2014-07-24 16:04:11 UTC) #1
Charlie Reis
I'll defer to sign-in reviewers for most of the code. Just a few questions below. ...
6 years, 5 months ago (2014-07-24 18:14:39 UTC) #2
guohui
https://codereview.chromium.org/418043002/diff/20001/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc File chrome/browser/ui/webui/signin/inline_login_handler_impl.cc (left): https://codereview.chromium.org/418043002/diff/20001/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc#oldcode229 chrome/browser/ui/webui/signin/inline_login_handler_impl.cc:229: // Loading any untrusted (e.g., HTTP) URLs in the ...
6 years, 5 months ago (2014-07-24 18:31:22 UTC) #3
Charlie Reis
Thanks. Just waiting for xiyuan to review (and confirm there will be a fix for ...
6 years, 5 months ago (2014-07-24 18:47:11 UTC) #4
guohui
https://codereview.chromium.org/418043002/diff/20001/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc File chrome/browser/ui/webui/signin/inline_login_handler_impl.cc (left): https://codereview.chromium.org/418043002/diff/20001/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc#oldcode229 chrome/browser/ui/webui/signin/inline_login_handler_impl.cc:229: // Loading any untrusted (e.g., HTTP) URLs in the ...
6 years, 5 months ago (2014-07-24 19:37:18 UTC) #5
xiyuan
https://codereview.chromium.org/418043002/diff/20001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc File chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc (right): https://codereview.chromium.org/418043002/diff/20001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc#newcode288 chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc:288: #if !defined(OS_CHROMEOS) On 2014/07/24 18:31:21, guohui wrote: > Because ...
6 years, 5 months ago (2014-07-25 18:07:23 UTC) #6
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/418043002/diff/40001/chrome/browser/resources/gaia_auth/background.js File chrome/browser/resources/gaia_auth/background.js (right): https://codereview.chromium.org/418043002/diff/40001/chrome/browser/resources/gaia_auth/background.js#newcode73 chrome/browser/resources/gaia_auth/background.js:73: {urls: ['*://*/*', this.CONTINUE_URL_BASE + '*'], types: ['sub_frame']}, Why append ...
6 years, 4 months ago (2014-07-28 14:27:50 UTC) #7
Charlie Reis
What's the status of this? It's important to get https://codereview.chromium.org/317093002/ landed.
6 years, 4 months ago (2014-08-05 18:41:01 UTC) #8
guohui
sorry just back from vacation, will resume working on this tmrw at the latest.
6 years, 4 months ago (2014-08-06 20:45:17 UTC) #9
guohui
sorry just back from vacation, will resume working on this tmrw at the latest.
6 years, 4 months ago (2014-08-06 20:45:22 UTC) #10
guohui
sorry just back from vacation, will resume working on this tmrw at the latest.
6 years, 4 months ago (2014-08-06 20:45:22 UTC) #11
guohui
sorry just back from vacation, will resume working on this tmrw at the latest.
6 years, 4 months ago (2014-08-06 20:45:22 UTC) #12
guohui
Sorry for the long delay, could you please take another look? Thanks! https://codereview.chromium.org/418043002/diff/20001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc File chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc ...
6 years, 4 months ago (2014-08-07 19:53:34 UTC) #13
guohui
https://codereview.chromium.org/418043002/diff/100001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc File chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc (right): https://codereview.chromium.org/418043002/diff/100001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc#newcode184 chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc:184: // embedded_test_server()->StopThread(); @xiyuan, your suggested change of splitting the ...
6 years, 4 months ago (2014-08-07 22:31:24 UTC) #14
xiyuan
https://codereview.chromium.org/418043002/diff/100001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc File chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc (right): https://codereview.chromium.org/418043002/diff/100001/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc#newcode184 chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc:184: // embedded_test_server()->StopThread(); On 2014/08/07 22:31:23, guohui wrote: > @xiyuan, ...
6 years, 4 months ago (2014-08-07 23:07:19 UTC) #15
Roger Tawa OOO till Jul 10th
lgtm
6 years, 4 months ago (2014-08-08 16:23:36 UTC) #16
guohui
It seems that splitting the embedded test server startup into two parts has never worked ...
6 years, 4 months ago (2014-08-11 21:35:10 UTC) #17
xiyuan
https://codereview.chromium.org/418043002/diff/120001/net/test/embedded_test_server/embedded_test_server.cc File net/test/embedded_test_server/embedded_test_server.cc (right): https://codereview.chromium.org/418043002/diff/120001/net/test/embedded_test_server/embedded_test_server.cc#newcode212 net/test/embedded_test_server/embedded_test_server.cc:212: TCPListenSocket::CreateAndBind("127.0.0.1", port_); Thank you for digging through the problem. ...
6 years, 4 months ago (2014-08-11 22:00:41 UTC) #18
oshima
https://codereview.chromium.org/418043002/diff/120001/net/test/embedded_test_server/embedded_test_server.cc File net/test/embedded_test_server/embedded_test_server.cc (right): https://codereview.chromium.org/418043002/diff/120001/net/test/embedded_test_server/embedded_test_server.cc#newcode212 net/test/embedded_test_server/embedded_test_server.cc:212: TCPListenSocket::CreateAndBind("127.0.0.1", port_); On 2014/08/11 22:00:41, xiyuan wrote: > Thank ...
6 years, 4 months ago (2014-08-12 04:27:25 UTC) #19
guohui
https://codereview.chromium.org/418043002/diff/120001/net/test/embedded_test_server/embedded_test_server.cc File net/test/embedded_test_server/embedded_test_server.cc (right): https://codereview.chromium.org/418043002/diff/120001/net/test/embedded_test_server/embedded_test_server.cc#newcode212 net/test/embedded_test_server/embedded_test_server.cc:212: TCPListenSocket::CreateAndBind("127.0.0.1", port_); thanks xiyuan, missed that =) i think ...
6 years, 4 months ago (2014-08-12 15:55:19 UTC) #20
guohui
+mtomasz for owner review of embedded_test_server
6 years, 4 months ago (2014-08-12 18:31:39 UTC) #21
xiyuan
https://codereview.chromium.org/418043002/diff/220001/net/test/embedded_test_server/embedded_test_server.cc File net/test/embedded_test_server/embedded_test_server.cc (right): https://codereview.chromium.org/418043002/diff/220001/net/test/embedded_test_server/embedded_test_server.cc#newcode105 net/test/embedded_test_server/embedded_test_server.cc:105: void HttpListenSocket::ListenOnIOThread() { This looks the same as HttpListenSocket::Listen. ...
6 years, 4 months ago (2014-08-12 18:35:54 UTC) #22
guohui
https://codereview.chromium.org/418043002/diff/220001/net/test/embedded_test_server/embedded_test_server.cc File net/test/embedded_test_server/embedded_test_server.cc (right): https://codereview.chromium.org/418043002/diff/220001/net/test/embedded_test_server/embedded_test_server.cc#newcode105 net/test/embedded_test_server/embedded_test_server.cc:105: void HttpListenSocket::ListenOnIOThread() { On 2014/08/12 18:35:54, xiyuan wrote: > ...
6 years, 4 months ago (2014-08-12 19:01:17 UTC) #23
mtomasz
lgtm for embedded_test_server.*
6 years, 4 months ago (2014-08-13 01:37:51 UTC) #24
xiyuan
lgtm
6 years, 4 months ago (2014-08-13 04:06:25 UTC) #25
Charlie Reis
Rubber stamp LGTM. Thanks for finishing it up!
6 years, 4 months ago (2014-08-13 14:42:46 UTC) #26
bezzakonnik
bezzakonnik@gmail.com changed reviewers: + bezzakonnik@gmail.com
6 years, 3 months ago (2014-08-29 08:07:14 UTC) #27
bezzakonnik
6 years, 3 months ago (2014-08-29 08:07:14 UTC) #28
Charlie Reis
I'm not sure what this latest email was for, but can this test be landed ...
6 years, 3 months ago (2014-08-29 16:04:36 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/418043002/310001
6 years, 3 months ago (2014-08-29 17:07:37 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/418043002/330001
6 years, 3 months ago (2014-08-29 18:43:46 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-30 00:11:16 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/11634)
6 years, 3 months ago (2014-08-30 00:49:58 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/418043002/410001
6 years, 3 months ago (2014-09-03 23:54:41 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/9778)
6 years, 3 months ago (2014-09-04 01:17:14 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/418043002/430001
6 years, 3 months ago (2014-09-04 15:23:42 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/418043002/430001
6 years, 3 months ago (2014-09-04 16:16:23 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu_retina_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu_retina_triggered_tests/builds/43690) win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/47800)
6 years, 3 months ago (2014-09-04 17:10:39 UTC) #51
guohui
Fixed broken tests on CQ due to missing dependency on google_apis/test. Add maruel@ for owner ...
6 years, 3 months ago (2014-09-04 17:21:14 UTC) #54
M-A Ruel
lgtm
6 years, 3 months ago (2014-09-05 17:54:48 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/418043002/490001
6 years, 3 months ago (2014-09-05 18:00:44 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/2522)
6 years, 3 months ago (2014-09-05 18:53:46 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/418043002/490001
6 years, 3 months ago (2014-09-05 19:44:48 UTC) #62
commit-bot: I haz the power
Committed patchset #12 (id:490001) as 01479d4cad7c529336c31009b9c63ce49849c5ef
6 years, 3 months ago (2014-09-05 20:11:55 UTC) #63
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:41:18 UTC) #64
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/4bdcf21dcc119bdf3bea37e4a97e6ef0c05517bb
Cr-Commit-Position: refs/heads/master@{#293572}

Powered by Google App Engine
This is Rietveld 408576698