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

Issue 763673002: Replace direct access to kGoogleServicesUsername with calls to SigninManager. (Closed)

Created:
6 years ago by Roger Tawa OOO till Jul 10th
Modified:
6 years ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, maxbogue+watch_chromium.org, nkostylev+watch_chromium.org, zea+watch_chromium.org, dzhioev+watch_chromium.org, yoshiki+watch_chromium.org, pvalenzuela+watch_chromium.org, rginda+watch_chromium.org, pam+watch_chromium.org, oshima+watch_chromium.org, estade+watch_chromium.org, dbeam+watch-ntp_chromium.org, chromium-apps-reviews_chromium.org, pedrosimonetti+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Replace direct access to kGoogleServicesUsername with calls to SigninManager. There is no functional change in this CL. Some places outside SigninManager still use the pref, like one_click_signinin and ProfileIOData, but that is deprecated code that will go away. I will remove that code in separate CLs. BUG=107160 Committed: https://crrev.com/614597db84107c4e822210ad2d222fcaa3cd9c5b Cr-Commit-Position: refs/heads/master@{#307042}

Patch Set 1 : rebased #

Total comments: 16

Patch Set 2 : EPKP tests, sync #

Patch Set 3 : merged #

Patch Set 4 : account options tests #

Patch Set 5 : Fix merge #

Patch Set 6 : rebased #

Total comments: 2

Patch Set 7 : nullptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -115 lines) Patch
M chrome/browser/chromeos/file_manager/file_manager_browsertest.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/fake_login_utils.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/kiosk_browsertest.cc View 1 2 3 4 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/session/stub_login_session_manager_delegate.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc View 1 2 3 6 chunks +38 lines, -15 lines 0 comments Download
M chrome/browser/extensions/api/screenlock_private/screenlock_private_apitest.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/signed_in_devices_manager_unittest.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 6 chunks +9 lines, -21 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/signin/chrome_signin_client.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_global_error_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/supervised_user/custodian_profile_downloader_service.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/supervised_user/custodian_profile_downloader_service_factory.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_service_unittest.cc View 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 9 chunks +0 lines, -18 lines 0 comments Download
M chrome/browser/ui/browser_navigator_browsertest_chromeos.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/history_ui.cc View 1 2 3 4 5 6 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/local_discovery/local_discovery_ui_browsertest.cc View 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_login_handler.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_login_handler.cc View 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/shared_options_browsertest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/webui/sync_internals_browsertest.js View 1 1 chunk +15 lines, -1 line 0 comments Download
M chrome/test/data/webui/ntp4_browsertest.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (21 generated)
Roger Tawa OOO till Jul 10th
Hi all, This is a cleanup CL, and does not change behaviour of chrome. Nicolas, ...
6 years ago (2014-12-04 16:27:57 UTC) #17
not at google - send to devlin
I'll take your word for it. lgtm for extensions modulo that 1 comment. https://codereview.chromium.org/763673002/diff/280001/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc File ...
6 years ago (2014-12-04 16:32:31 UTC) #18
noms (inactive)
profiles + signin lgtm https://codereview.chromium.org/763673002/diff/280001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/763673002/diff/280001/chrome/browser/profiles/profile_impl.cc#newcode838 chrome/browser/profiles/profile_impl.cc:838: std::string ProfileImpl::GetProfileName() { Uhoh, yak ...
6 years ago (2014-12-04 16:35:39 UTC) #19
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/763673002/diff/280001/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc File chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc (right): https://codereview.chromium.org/763673002/diff/280001/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc#newcode233 chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc:233: SigninManagerFactory::GetForProfile(browser()->profile())-> On 2014/12/04 16:32:31, kalman wrote: > Is there ...
6 years ago (2014-12-04 16:35:58 UTC) #20
not at google - send to devlin
+pneubeck on that test. Maybe he will have a good idea. https://codereview.chromium.org/763673002/diff/280001/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc File chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc (right): ...
6 years ago (2014-12-04 16:37:26 UTC) #22
pneubeck (no reviews)
https://codereview.chromium.org/763673002/diff/280001/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc File chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc (right): https://codereview.chromium.org/763673002/diff/280001/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc#newcode261 chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc:261: SetAuthenticatedUsername("test@chromium.org"); On 2014/12/04 16:37:26, kalman wrote: > On 2014/12/04 ...
6 years ago (2014-12-04 17:06:48 UTC) #23
Marc Treib
supervised_user lgtm
6 years ago (2014-12-04 17:20:36 UTC) #24
Nicolas Zea
https://codereview.chromium.org/763673002/diff/280001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (left): https://codereview.chromium.org/763673002/diff/280001/chrome/browser/sync/profile_sync_service.cc#oldcode2506 chrome/browser/sync/profile_sync_service.cc:2506: profile_->GetPrefs()->GetString(prefs::kGoogleServicesUsername)); Is this no longer necessary? Was the signin ...
6 years ago (2014-12-04 17:57:40 UTC) #25
xiyuan
lgtm with nits https://codereview.chromium.org/763673002/diff/280001/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc File chrome/browser/chromeos/file_manager/file_manager_browsertest.cc (right): https://codereview.chromium.org/763673002/diff/280001/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc#newcode1210 chrome/browser/chromeos/file_manager/file_manager_browsertest.cc:1210: chromeos::ProfileHelper::GetProfileByUserIdHash(info.hash))-> nit: fix indent https://codereview.chromium.org/763673002/diff/280001/chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.cc File ...
6 years ago (2014-12-04 19:02:30 UTC) #26
Roger Tawa OOO till Jul 10th
Thanks everyone. Comments addressed, questions answered. Please take another look. https://codereview.chromium.org/763673002/diff/280001/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc File chrome/browser/chromeos/file_manager/file_manager_browsertest.cc (right): https://codereview.chromium.org/763673002/diff/280001/chrome/browser/chromeos/file_manager/file_manager_browsertest.cc#newcode1210 ...
6 years ago (2014-12-04 22:26:47 UTC) #29
Nicolas Zea
sync LGTM
6 years ago (2014-12-04 23:23:43 UTC) #30
Roger Tawa OOO till Jul 10th
Hi Scott, Can you do an owner review for chrome/browser/ui/* ? Thanks.
6 years ago (2014-12-05 00:03:54 UTC) #32
pneubeck (no reviews)
lgtm for chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api_unittest.cc
6 years ago (2014-12-05 09:50:41 UTC) #33
sky
LGTM https://codereview.chromium.org/763673002/diff/400001/chrome/browser/ui/webui/history_ui.cc File chrome/browser/ui/webui/history_ui.cc (right): https://codereview.chromium.org/763673002/diff/400001/chrome/browser/ui/webui/history_ui.cc#newcode123 chrome/browser/ui/webui/history_ui.cc:123: bool is_authenticated = signin_manager != NULL && nullptr
6 years ago (2014-12-05 16:45:03 UTC) #34
Roger Tawa OOO till Jul 10th
Thanks Scott. https://codereview.chromium.org/763673002/diff/400001/chrome/browser/ui/webui/history_ui.cc File chrome/browser/ui/webui/history_ui.cc (right): https://codereview.chromium.org/763673002/diff/400001/chrome/browser/ui/webui/history_ui.cc#newcode123 chrome/browser/ui/webui/history_ui.cc:123: bool is_authenticated = signin_manager != NULL && ...
6 years ago (2014-12-05 17:02:16 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/763673002/420001
6 years ago (2014-12-05 17:03:27 UTC) #37
commit-bot: I haz the power
Committed patchset #7 (id:420001)
6 years ago (2014-12-05 17:57:42 UTC) #38
commit-bot: I haz the power
6 years ago (2014-12-05 17:58:30 UTC) #39
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/614597db84107c4e822210ad2d222fcaa3cd9c5b
Cr-Commit-Position: refs/heads/master@{#307042}

Powered by Google App Engine
This is Rietveld 408576698