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

Issue 1012083002: Resolve new GAIA flow's infinite loop. (Closed)

Created:
5 years, 9 months ago by Ivan Podogov
Modified:
5 years, 9 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, dzhioev+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, Fady Samuel
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Resolve new GAIA flow's infinite loop. When a previously added (existing) user is removed from the white list, authentication fails and reloads with the same cookies, which causes it to retry a sign-in, thus causing an infinite loop. We must clear cookies both from C++ code and in JS code. BUG=464143 Committed: https://crrev.com/74a79da40a413af2d4f470603d90eb02e15fc171 Cr-Commit-Position: refs/heads/master@{#321754}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Nits. #

Patch Set 3 : Clear storage partition in ProfileHelper::ClearSigninProfile. #

Total comments: 5

Patch Set 4 : Simplify WebViewGuest retrieval. #

Total comments: 4

Patch Set 5 : Move to anonymous namespace. #

Total comments: 8

Patch Set 6 : Clear all WebView partitions. #

Total comments: 3

Patch Set 7 : Rebase. #

Patch Set 8 : Fix build. #

Patch Set 9 : Fix test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -17 lines) Patch
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/ui/webui_login_display.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/net/network_portal_notification_controller.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.h View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.cc View 1 2 3 4 5 5 chunks +44 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/system/device_disabling_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/gaia_auth_host/authenticator.js View 1 2 3 4 5 6 7 8 2 chunks +20 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 49 (13 generated)
Ivan Podogov
PTAL
5 years, 9 months ago (2015-03-17 14:29:49 UTC) #2
xiyuan
https://codereview.chromium.org/1012083002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc (right): https://codereview.chromium.org/1012083002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc#newcode650 chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc:650: if (StartupUtils::IsWebviewSigninEnabled()) { Can we move the webview data ...
5 years, 9 months ago (2015-03-17 16:05:53 UTC) #3
Roman Sorokin (ftl)
https://codereview.chromium.org/1012083002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/1012083002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc#newcode697 chrome/browser/chromeos/login/existing_user_controller.cc:697: login_display_->ShowSigninUI(""); Why is call here with an empty string? ...
5 years, 9 months ago (2015-03-17 17:00:41 UTC) #4
Ivan Podogov
https://codereview.chromium.org/1012083002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/1012083002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc#newcode697 chrome/browser/chromeos/login/existing_user_controller.cc:697: login_display_->ShowSigninUI(""); On 2015/03/17 17:00:41, Roman Sorokin wrote: > Why ...
5 years, 9 months ago (2015-03-18 07:36:20 UTC) #5
Ivan Podogov
https://codereview.chromium.org/1012083002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc (right): https://codereview.chromium.org/1012083002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc#newcode655 chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc:655: contents->GetLastCommittedURL().GetContent()); On 2015/03/18 07:36:20, Ivan Podogov wrote: > On ...
5 years, 9 months ago (2015-03-18 07:53:05 UTC) #6
xiyuan
cc: fsamuel in case he is interested in how we deal with the webview's storage ...
5 years, 9 months ago (2015-03-18 16:52:27 UTC) #7
Ivan Podogov
https://codereview.chromium.org/1012083002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc (right): https://codereview.chromium.org/1012083002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc#newcode655 chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc:655: contents->GetLastCommittedURL().GetContent()); On 2015/03/18 16:52:27, xiyuan wrote: > On 2015/03/18 ...
5 years, 9 months ago (2015-03-19 09:29:45 UTC) #8
Fady Samuel
https://codereview.chromium.org/1012083002/diff/40001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/40001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode209 chrome/browser/chromeos/profiles/profile_helper.cc:209: if (guest_view->GetViewType() == extensions::WebViewGuest::Type) { This is unnecessarily complex. ...
5 years, 9 months ago (2015-03-19 11:15:56 UTC) #10
Ivan Podogov
https://codereview.chromium.org/1012083002/diff/40001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/40001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode209 chrome/browser/chromeos/profiles/profile_helper.cc:209: if (guest_view->GetViewType() == extensions::WebViewGuest::Type) { On 2015/03/19 11:15:56, Fady ...
5 years, 9 months ago (2015-03-19 11:56:32 UTC) #11
Fady Samuel
https://codereview.chromium.org/1012083002/diff/40001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/40001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode209 chrome/browser/chromeos/profiles/profile_helper.cc:209: if (guest_view->GetViewType() == extensions::WebViewGuest::Type) { On 2015/03/19 11:56:32, Ivan ...
5 years, 9 months ago (2015-03-19 12:14:31 UTC) #12
Ivan Podogov
https://codereview.chromium.org/1012083002/diff/40001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/40001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode209 chrome/browser/chromeos/profiles/profile_helper.cc:209: if (guest_view->GetViewType() == extensions::WebViewGuest::Type) { On 2015/03/19 12:14:30, Fady ...
5 years, 9 months ago (2015-03-19 12:18:43 UTC) #13
Ivan Podogov
https://codereview.chromium.org/1012083002/diff/40001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/40001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode209 chrome/browser/chromeos/profiles/profile_helper.cc:209: if (guest_view->GetViewType() == extensions::WebViewGuest::Type) { On 2015/03/19 11:15:56, Fady ...
5 years, 9 months ago (2015-03-19 12:29:21 UTC) #14
Roman Sorokin (ftl)
https://codereview.chromium.org/1012083002/diff/60001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/60001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode204 chrome/browser/chromeos/profiles/profile_helper.cc:204: static bool ClearWebViewData(const base::Closure& on_clear_callback, Why these functions are ...
5 years, 9 months ago (2015-03-19 13:15:40 UTC) #15
Ivan Podogov
https://codereview.chromium.org/1012083002/diff/60001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/60001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode204 chrome/browser/chromeos/profiles/profile_helper.cc:204: static bool ClearWebViewData(const base::Closure& on_clear_callback, On 2015/03/19 13:15:40, Roman ...
5 years, 9 months ago (2015-03-19 13:25:37 UTC) #16
Roman Sorokin (ftl)
lgtm
5 years, 9 months ago (2015-03-19 13:32:19 UTC) #17
xiyuan
https://codereview.chromium.org/1012083002/diff/80001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/80001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode72 chrome/browser/chromeos/profiles/profile_helper.cc:72: web_contents, base::Bind(&ClearWebViewData, on_clear_callback))) { This could cause the |on_clear_callback| ...
5 years, 9 months ago (2015-03-19 16:33:32 UTC) #18
Ivan Podogov
https://codereview.chromium.org/1012083002/diff/80001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/80001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode72 chrome/browser/chromeos/profiles/profile_helper.cc:72: web_contents, base::Bind(&ClearWebViewData, on_clear_callback))) { On 2015/03/19 16:33:31, xiyuan wrote: ...
5 years, 9 months ago (2015-03-19 16:59:06 UTC) #19
xiyuan
https://codereview.chromium.org/1012083002/diff/80001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/80001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode72 chrome/browser/chromeos/profiles/profile_helper.cc:72: web_contents, base::Bind(&ClearWebViewData, on_clear_callback))) { On 2015/03/19 16:59:06, Ivan Podogov ...
5 years, 9 months ago (2015-03-19 18:22:19 UTC) #20
Ivan Podogov
https://codereview.chromium.org/1012083002/diff/80001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/80001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode72 chrome/browser/chromeos/profiles/profile_helper.cc:72: web_contents, base::Bind(&ClearWebViewData, on_clear_callback))) { On 2015/03/19 18:22:19, xiyuan wrote: ...
5 years, 9 months ago (2015-03-19 18:42:43 UTC) #21
xiyuan
https://codereview.chromium.org/1012083002/diff/80001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/80001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode72 chrome/browser/chromeos/profiles/profile_helper.cc:72: web_contents, base::Bind(&ClearWebViewData, on_clear_callback))) { On 2015/03/19 18:42:43, Ivan Podogov ...
5 years, 9 months ago (2015-03-19 19:49:28 UTC) #22
xiyuan
On 2015/03/19 19:49:28, xiyuan wrote: > https://codereview.chromium.org/1012083002/diff/80001/chrome/browser/chromeos/profiles/profile_helper.cc > File chrome/browser/chromeos/profiles/profile_helper.cc (right): > > https://codereview.chromium.org/1012083002/diff/80001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode72 > ...
5 years, 9 months ago (2015-03-20 03:09:37 UTC) #23
Ivan Podogov
On 2015/03/20 03:09:37, xiyuan wrote: > On 2015/03/19 19:49:28, xiyuan wrote: > > > https://codereview.chromium.org/1012083002/diff/80001/chrome/browser/chromeos/profiles/profile_helper.cc ...
5 years, 9 months ago (2015-03-20 07:51:36 UTC) #24
Ivan Podogov
On 2015/03/20 07:51:36, Ivan Podogov wrote: > On 2015/03/20 03:09:37, xiyuan wrote: > > On ...
5 years, 9 months ago (2015-03-20 14:12:33 UTC) #25
xiyuan
LGTM Thank you for bearing with me and going the extra mile.
5 years, 9 months ago (2015-03-20 15:59:53 UTC) #26
xiyuan
https://codereview.chromium.org/1012083002/diff/100001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/100001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode75 chrome/browser/chromeos/profiles/profile_helper.cc:75: manager->ForEachGuest(web_contents, Since we are interested in storage partitions, we ...
5 years, 9 months ago (2015-03-20 17:36:21 UTC) #27
Ivan Podogov
https://codereview.chromium.org/1012083002/diff/100001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/100001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode75 chrome/browser/chromeos/profiles/profile_helper.cc:75: manager->ForEachGuest(web_contents, On 2015/03/20 17:36:21, xiyuan wrote: > Since we ...
5 years, 9 months ago (2015-03-21 14:47:43 UTC) #28
xiyuan
https://codereview.chromium.org/1012083002/diff/100001/chrome/browser/chromeos/profiles/profile_helper.cc File chrome/browser/chromeos/profiles/profile_helper.cc (right): https://codereview.chromium.org/1012083002/diff/100001/chrome/browser/chromeos/profiles/profile_helper.cc#newcode75 chrome/browser/chromeos/profiles/profile_helper.cc:75: manager->ForEachGuest(web_contents, On 2015/03/21 14:47:43, Ivan Podogov wrote: > On ...
5 years, 9 months ago (2015-03-22 00:12:02 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1012083002/100001
5 years, 9 months ago (2015-03-23 06:54:38 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/35590)
5 years, 9 months ago (2015-03-23 06:57:27 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1012083002/120001
5 years, 9 months ago (2015-03-23 07:03:15 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/20166)
5 years, 9 months ago (2015-03-23 07:18:56 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1012083002/130001
5 years, 9 months ago (2015-03-23 07:37:09 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/38591)
5 years, 9 months ago (2015-03-23 08:51:27 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1012083002/150001
5 years, 9 months ago (2015-03-23 09:26:32 UTC) #47
commit-bot: I haz the power
Committed patchset #9 (id:150001)
5 years, 9 months ago (2015-03-23 10:37:09 UTC) #48
commit-bot: I haz the power
5 years, 9 months ago (2015-03-23 10:37:51 UTC) #49
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/74a79da40a413af2d4f470603d90eb02e15fc171
Cr-Commit-Position: refs/heads/master@{#321754}

Powered by Google App Engine
This is Rietveld 408576698