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

Issue 23678007: OAuth2LoginManager+MergeSessionThrottle hardening, multi-profle support (Closed)

Created:
7 years, 3 months ago by zel
Modified:
7 years, 3 months ago
Reviewers:
xiyuan, Nikita (slow), sky
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

* Made OAuth2LoginManager derived from BrowserContextKeyedService as part of preparation for multi-profile work. * Added additional hardening for merge session throttle check: - MERGE_STATUS_IN_PROCESS state is active after we load refresh token from DB - LoginUtils::FinalizePrepareProfile() is now invoked right before merge session starts and after we load refresh tokens from DB - the throttle will be applicable only to requests that are raised within the first 10 seconds from session start - so if GAIA server response is stuck for longer than 10 seconds, we won't throttle BUG=243749, 238987 TEST=added MergeSessionLoadPageTest.MergeSessionPageNotShownOnTimeout, existing tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222699

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : rebase #

Patch Set 13 : #

Patch Set 14 : rebase #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : #

Patch Set 20 : #

Patch Set 21 : #

Patch Set 22 : rebase #6894231 #

Patch Set 23 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+635 lines, -412 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_browsertest.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/fake_login_utils.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/fake_login_utils.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 8 chunks +54 lines, -45 lines 0 comments Download
M chrome/browser/chromeos/login/merge_session_load_page.h View 1 2 3 4 3 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/merge_session_load_page.cc View 1 2 3 4 3 chunks +26 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/login/merge_session_load_page_unittest.cc View 1 2 3 4 5 6 7 6 chunks +55 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/merge_session_throttle.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +40 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/merge_session_throttle.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +183 lines, -28 lines 0 comments Download
M chrome/browser/chromeos/login/mock_user_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/oauth2_login_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +104 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/login/oauth2_login_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +59 lines, -42 lines 0 comments Download
A chrome/browser/chromeos/login/oauth2_login_manager_factory.h View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/login/oauth2_login_manager_factory.cc View 1 2 3 4 5 1 chunk +19 lines, -27 lines 0 comments Download
M chrome/browser/chromeos/login/oauth_login_manager.h View 1 2 3 1 chunk +0 lines, -103 lines 0 comments Download
D chrome/browser/chromeos/login/oauth_login_manager.cc View 1 2 3 1 chunk +0 lines, -45 lines 0 comments Download
M chrome/browser/chromeos/login/test_login_utils.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/test_login_utils.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +0 lines, -20 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager.cc View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +0 lines, -20 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +26 lines, -11 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
zel
7 years, 3 months ago (2013-09-04 17:42:28 UTC) #1
xiyuan
LGTM https://codereview.chromium.org/23678007/diff/6001/chrome/browser/chromeos/login/oauth2_login_manager.h File chrome/browser/chromeos/login/oauth2_login_manager.h (right): https://codereview.chromium.org/23678007/diff/6001/chrome/browser/chromeos/login/oauth2_login_manager.h#newcode111 chrome/browser/chromeos/login/oauth2_login_manager.h:111: // Keeps the track if we have already ...
7 years, 3 months ago (2013-09-04 20:12:08 UTC) #2
zel
PTAL, some other OAuth2LoginManager changes are in now
7 years, 3 months ago (2013-09-06 01:16:10 UTC) #3
xiyuan
SLGTM https://codereview.chromium.org/23678007/diff/11001/chrome/browser/chromeos/login/oauth2_login_manager.h File chrome/browser/chromeos/login/oauth2_login_manager.h (right): https://codereview.chromium.org/23678007/diff/11001/chrome/browser/chromeos/login/oauth2_login_manager.h#newcode25 chrome/browser/chromeos/login/oauth2_login_manager.h:25: class OAuth2LoginManager : public BrowserContextKeyedService, nit: Update comments.
7 years, 3 months ago (2013-09-06 01:35:49 UTC) #4
zel
https://codereview.chromium.org/23678007/diff/11001/chrome/browser/chromeos/login/oauth2_login_manager.h File chrome/browser/chromeos/login/oauth2_login_manager.h (right): https://codereview.chromium.org/23678007/diff/11001/chrome/browser/chromeos/login/oauth2_login_manager.h#newcode25 chrome/browser/chromeos/login/oauth2_login_manager.h:25: class OAuth2LoginManager : public BrowserContextKeyedService, On 2013/09/06 01:35:49, xiyuan ...
7 years, 3 months ago (2013-09-07 02:03:42 UTC) #5
zel
+sky for review of: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc chrome/browser/ui/startup/startup_browser_creator.cc
7 years, 3 months ago (2013-09-07 02:04:22 UTC) #6
sky
LGTM
7 years, 3 months ago (2013-09-08 02:19:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/23678007/41001
7 years, 3 months ago (2013-09-09 19:00:46 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=152656
7 years, 3 months ago (2013-09-09 20:05:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/23678007/60001
7 years, 3 months ago (2013-09-10 01:14:18 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-10 01:41:46 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/23678007/79001
7 years, 3 months ago (2013-09-10 17:16:46 UTC) #12
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests, interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=153065
7 years, 3 months ago (2013-09-10 18:29:08 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/23678007/5001
7 years, 3 months ago (2013-09-10 18:54:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/23678007/77001
7 years, 3 months ago (2013-09-10 21:12:12 UTC) #15
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-10 21:24:49 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/23678007/82001
7 years, 3 months ago (2013-09-10 22:08:56 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=153248
7 years, 3 months ago (2013-09-11 01:28:40 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/23678007/115001
7 years, 3 months ago (2013-09-11 01:42:31 UTC) #19
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=153315
7 years, 3 months ago (2013-09-11 04:54:37 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/23678007/48001
7 years, 3 months ago (2013-09-11 15:59:23 UTC) #21
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/login/merge_session_throttle.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 3 months ago (2013-09-11 20:22:31 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/23678007/142001
7 years, 3 months ago (2013-09-11 21:23:38 UTC) #23
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-11 21:30:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/23678007/150001
7 years, 3 months ago (2013-09-11 22:46:06 UTC) #25
commit-bot: I haz the power
7 years, 3 months ago (2013-09-12 02:01:19 UTC) #26
Message was sent while issue was closed.
Change committed as 222699

Powered by Google App Engine
This is Rietveld 408576698