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

Issue 12502017: signin: pull basic SigninManager functionality into new SigninManagerBase class. (Closed)

Created:
7 years, 9 months ago by tim (not reviewing)
Modified:
7 years, 8 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, pavely
Visibility:
Public.

Description

signin: pull basic SigninManager functionality into new SigninManagerBase class. Removes chrome os ifdefs from SigninManager. SigninManagerBase provides all necessary functionality for that platform. I plan to change most callers of SigninManagerFactory::GetForProfile to use GetBaseForProfile in a follow up CL, and ultimately have the factory only create an SMB (versus a full SigninManager) on Chrome OS. TBR=sky@chromium.org for chrome/, chrome/browser, chrome/browser/ui, and chrome/test. TBR=zelidrag@chromium.org for chrome/browser/chromeos/login TBR=mpcomplete@chromium.org for chrome/browser/extensions/api/identity BUG=181451, 174927 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195410

Patch Set 1 : #

Total comments: 14

Patch Set 2 : add ifdefs to SigninManagerFactory #

Patch Set 3 : rebase #

Patch Set 4 : cros test #

Patch Set 5 : fix test #

Patch Set 6 : fix override #

Total comments: 22

Patch Set 7 : drew's review #

Patch Set 8 : megarebase #

Total comments: 3

Patch Set 9 : add todo #

Patch Set 10 : bye bye signin_manager_fake #

Patch Set 11 : moar signin_manager_fake bustage #

Patch Set 12 : deal with AuthInProgress override removal #

Patch Set 13 : cont'd #

Patch Set 14 : deal with new enterprise_platform_keys_private_api #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1080 lines, -647 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 10 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/screen_locker.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/first_run/first_run.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/policy/url_blacklist_manager.cc View 1 2 3 4 5 6 5 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/policy/url_blacklist_manager_unittest.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/browser/signin/fake_signin_manager.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +22 lines, -8 lines 0 comments Download
M chrome/browser/signin/fake_signin_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +31 lines, -10 lines 0 comments Download
M chrome/browser/signin/signin_global_error.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/signin/signin_global_error.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/signin/signin_global_error_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/signin/signin_manager.h View 1 2 3 4 5 6 7 8 9 10 11 13 chunks +28 lines, -124 lines 0 comments Download
M chrome/browser/signin/signin_manager.cc View 1 2 3 4 5 6 7 8 9 20 chunks +22 lines, -243 lines 0 comments Download
A chrome/browser/signin/signin_manager_base.h View 1 2 3 4 5 6 7 8 1 chunk +177 lines, -0 lines 0 comments Download
A chrome/browser/signin/signin_manager_base.cc View 1 2 3 4 5 6 7 1 chunk +276 lines, -0 lines 0 comments Download
A chrome/browser/signin/signin_manager_base_unittest.cc View 1 2 3 4 5 6 7 1 chunk +92 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_manager_factory.h View 1 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/signin/signin_manager_factory.cc View 1 2 3 4 5 6 7 3 chunks +25 lines, -1 line 0 comments Download
M chrome/browser/signin/signin_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -45 lines 0 comments Download
M chrome/browser/signin/signin_tracker.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/signin_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 9 chunks +11 lines, -17 lines 0 comments Download
M chrome/browser/signin/signin_ui_util.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/signin/signin_ui_util.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 7 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_factory.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.cc View 1 2 3 4 5 6 7 2 chunks +18 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_password_unittest.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_preference_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_session_unittest.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +25 lines, -13 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 3 4 5 6 7 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/sync/sync_global_error.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/sync_global_error.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_global_error_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/sync_ui_util.h View 1 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.cc View 1 8 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/sync/sync_ui_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +38 lines, -8 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/app_list/chrome_signin_delegate.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/auto_login_prompter.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/chrome_pages.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 7 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.h View 1 2 3 4 5 6 7 8 9 7 chunks +18 lines, -17 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 2 3 4 5 6 7 8 9 12 chunks +23 lines, -15 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 chunks +98 lines, -58 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/base/chrome_render_view_host_test_harness.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
tim (not reviewing)
Still tinkering, but ready for a first look! (atwilson@ FYI / TBR when he returns ...
7 years, 9 months ago (2013-03-23 20:30:48 UTC) #1
tim (not reviewing)
On 2013/03/23 20:30:48, timsteele wrote: > Still tinkering, but ready for a first look! > ...
7 years, 9 months ago (2013-03-26 17:37:00 UTC) #2
Roger Tawa OOO till Jul 10th
Hi Tim, some questions below. https://codereview.chromium.org/12502017/diff/2001/chrome/browser/signin/signin_manager.cc File chrome/browser/signin/signin_manager.cc (right): https://codereview.chromium.org/12502017/diff/2001/chrome/browser/signin/signin_manager.cc#newcode125 chrome/browser/signin/signin_manager.cc:125: SigninManager::~SigninManager() { } should ...
7 years, 9 months ago (2013-03-27 17:36:33 UTC) #3
tim (not reviewing)
Haven't uploaded patch set yet. Was going to, but I pulled the thread of a ...
7 years, 8 months ago (2013-03-29 18:03:15 UTC) #4
tim (not reviewing)
OK Roger, I think this is ready for another look. It ballooned in # of ...
7 years, 8 months ago (2013-04-03 17:41:07 UTC) #5
tim (not reviewing)
+Pavel FYI
7 years, 8 months ago (2013-04-05 17:31:32 UTC) #6
Roger Tawa OOO till Jul 10th
lgtm Sorry for the delay. A few minor nits below. https://codereview.chromium.org/12502017/diff/111002/chrome/browser/policy/url_blacklist_manager.cc File chrome/browser/policy/url_blacklist_manager.cc (right): https://codereview.chromium.org/12502017/diff/111002/chrome/browser/policy/url_blacklist_manager.cc#newcode69 ...
7 years, 8 months ago (2013-04-05 20:53:57 UTC) #7
tim (not reviewing)
Thanks Roger. Comments below. I'll wait for Drew to review policy/ (see comment below) and ...
7 years, 8 months ago (2013-04-05 22:14:12 UTC) #8
Joao da Silva
Drive by comment on the URL blacklist. https://codereview.chromium.org/12502017/diff/111002/chrome/browser/policy/url_blacklist_manager.cc File chrome/browser/policy/url_blacklist_manager.cc (right): https://codereview.chromium.org/12502017/diff/111002/chrome/browser/policy/url_blacklist_manager.cc#newcode69 chrome/browser/policy/url_blacklist_manager.cc:69: #endif On ...
7 years, 8 months ago (2013-04-09 15:26:07 UTC) #9
Andrew T Wilson (Slow)
https://codereview.chromium.org/12502017/diff/111002/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc File chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc (right): https://codereview.chromium.org/12502017/diff/111002/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc#newcode78 chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc:78: } Wrong indent. https://codereview.chromium.org/12502017/diff/111002/chrome/browser/policy/url_blacklist_manager.cc File chrome/browser/policy/url_blacklist_manager.cc (right): https://codereview.chromium.org/12502017/diff/111002/chrome/browser/policy/url_blacklist_manager.cc#newcode69 chrome/browser/policy/url_blacklist_manager.cc:69: ...
7 years, 8 months ago (2013-04-09 15:39:25 UTC) #10
tim (not reviewing)
https://codereview.chromium.org/12502017/diff/111002/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc File chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc (right): https://codereview.chromium.org/12502017/diff/111002/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc#newcode78 chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc:78: } On 2013/04/09 15:39:25, Andrew T Wilson wrote: > ...
7 years, 8 months ago (2013-04-16 03:28:29 UTC) #11
tim (not reviewing)
On 2013/04/16 03:28:29, timsteele wrote: > https://codereview.chromium.org/12502017/diff/111002/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc > File chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc (right): > > https://codereview.chromium.org/12502017/diff/111002/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc#newcode78 > ...
7 years, 8 months ago (2013-04-17 16:30:04 UTC) #12
tim (not reviewing)
Rebased atop recent SigninManager changes; all comments addressed. Drew, PTAL.
7 years, 8 months ago (2013-04-17 21:44:34 UTC) #13
Matt Perry
extensions LGTM
7 years, 8 months ago (2013-04-17 21:58:30 UTC) #14
Andrew T Wilson (Slow)
So, I really think we need to fix the SignOut() situation. I'm OK with doing ...
7 years, 8 months ago (2013-04-18 13:28:07 UTC) #15
tim (not reviewing)
https://codereview.chromium.org/12502017/diff/148005/chrome/browser/signin/signin_manager_base.cc File chrome/browser/signin/signin_manager_base.cc (right): https://codereview.chromium.org/12502017/diff/148005/chrome/browser/signin/signin_manager_base.cc#newcode201 chrome/browser/signin/signin_manager_base.cc:201: DCHECK(IsInitialized()); On 2013/04/18 13:28:07, Andrew T Wilson wrote: > ...
7 years, 8 months ago (2013-04-18 18:27:02 UTC) #16
Andrew T Wilson (Slow)
Apologies, I should have added an explicit LGTM to my previous comment since it was ...
7 years, 8 months ago (2013-04-19 11:22:07 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/12502017/158001
7 years, 8 months ago (2013-04-19 17:11:10 UTC) #18
commit-bot: I haz the power
Failed to apply patch for chrome/browser/signin/signin_manager_fake.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
7 years, 8 months ago (2013-04-19 17:11:22 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/12502017/167001
7 years, 8 months ago (2013-04-19 18:08:12 UTC) #20
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-19 18:35:12 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/12502017/165005
7 years, 8 months ago (2013-04-19 18:37:16 UTC) #22
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-19 19:05:40 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/12502017/170003
7 years, 8 months ago (2013-04-19 20:50:14 UTC) #24
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-19 21:12:29 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/12502017/199001
7 years, 8 months ago (2013-04-19 21:26:44 UTC) #26
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-19 21:28:41 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/12502017/209001
7 years, 8 months ago (2013-04-19 21:50:23 UTC) #28
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-20 01:41:03 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/12502017/209001
7 years, 8 months ago (2013-04-21 07:54:19 UTC) #30
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-21 08:01:29 UTC) #31
tim (not reviewing)
7 years, 8 months ago (2013-04-21 08:07:32 UTC) #32
Message was sent while issue was closed.
Committed patchset #14 manually as r195410 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698