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

Issue 497783002: Disable lock if no credentials are present (Closed)

Created:
6 years, 4 months ago by Mike Lerman
Modified:
6 years, 3 months ago
CC:
chromium-reviews, tfarina
Project:
chromium
Visibility:
Public.

Description

Disable lock if no credentials are present BUG=335086 TEST=Ensure new-profile-management and account-consistency are not enabled. Then sign in a profile. Then enable new-profile-management. The "lock" button of the avatar menu should be present but disabled. Committed: https://crrev.com/866872d0b9bc0c42005bd937c51b93e7e14e1faa Cr-Commit-Position: refs/heads/master@{#291896}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Better variable name #

Total comments: 33

Patch Set 3 : Address reviewer comments (msw / shess) #

Patch Set 4 : Return [false] if profile_index = ::npos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -25 lines) Patch
M chrome/browser/signin/local_auth.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/signin/local_auth.cc View 1 2 3 4 chunks +35 lines, -16 lines 0 comments Download
M chrome/browser/signin/local_auth_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 2 6 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm View 1 2 1 chunk +66 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 4 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Mike Lerman
Hi Roger and Hui, Can I get your reviews on this before I send this ...
6 years, 4 months ago (2014-08-22 19:10:56 UTC) #1
guohui
lgtm
6 years, 4 months ago (2014-08-22 19:23:46 UTC) #2
Roger Tawa OOO till Jul 10th
lgtm https://codereview.chromium.org/497783002/diff/20001/chrome/browser/signin/local_auth.h File chrome/browser/signin/local_auth.h (right): https://codereview.chromium.org/497783002/diff/20001/chrome/browser/signin/local_auth.h#newcode36 chrome/browser/signin/local_auth.h:36: bool LocalAuthCredentialsExist(size_t info_index); Please provide comment to describe ...
6 years, 4 months ago (2014-08-22 19:33:45 UTC) #3
Mike Lerman
Hi Mike and Scott, Could I get reviews on cocoa and views implementation of the ...
6 years, 4 months ago (2014-08-22 20:10:32 UTC) #4
Scott Hess - ex-Googler
lgtm for cocoa with minor nits. https://codereview.chromium.org/497783002/diff/40001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm File chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm (right): https://codereview.chromium.org/497783002/diff/40001/chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm#newcode456 chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm:456: SignedInProfileLockDisabled) { Alignment. ...
6 years, 4 months ago (2014-08-22 20:51:27 UTC) #5
msw
https://codereview.chromium.org/497783002/diff/40001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/497783002/diff/40001/chrome/browser/signin/local_auth.cc#newcode217 chrome/browser/signin/local_auth.cc:217: if (info_index == std::string::npos) { Should this logic be ...
6 years, 4 months ago (2014-08-22 21:46:49 UTC) #6
Mike Lerman
Thank you Mike and thank you Scott! https://codereview.chromium.org/497783002/diff/20001/chrome/browser/signin/local_auth.h File chrome/browser/signin/local_auth.h (right): https://codereview.chromium.org/497783002/diff/20001/chrome/browser/signin/local_auth.h#newcode36 chrome/browser/signin/local_auth.h:36: bool LocalAuthCredentialsExist(size_t ...
6 years, 4 months ago (2014-08-25 14:44:31 UTC) #7
msw
https://codereview.chromium.org/497783002/diff/40001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/497783002/diff/40001/chrome/browser/signin/local_auth.cc#newcode217 chrome/browser/signin/local_auth.cc:217: if (info_index == std::string::npos) { On 2014/08/25 14:44:30, Mike ...
6 years, 4 months ago (2014-08-25 17:39:55 UTC) #8
Mike Lerman
https://codereview.chromium.org/497783002/diff/40001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/497783002/diff/40001/chrome/browser/signin/local_auth.cc#newcode217 chrome/browser/signin/local_auth.cc:217: if (info_index == std::string::npos) { On 2014/08/25 17:39:54, msw ...
6 years, 4 months ago (2014-08-25 18:11:37 UTC) #9
msw
https://codereview.chromium.org/497783002/diff/40001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/497783002/diff/40001/chrome/browser/signin/local_auth.cc#newcode217 chrome/browser/signin/local_auth.cc:217: if (info_index == std::string::npos) { On 2014/08/25 18:11:37, Mike ...
6 years, 4 months ago (2014-08-25 18:54:03 UTC) #10
Mike Lerman
https://codereview.chromium.org/497783002/diff/40001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/497783002/diff/40001/chrome/browser/signin/local_auth.cc#newcode217 chrome/browser/signin/local_auth.cc:217: if (info_index == std::string::npos) { On 2014/08/25 18:54:03, msw ...
6 years, 4 months ago (2014-08-25 19:05:11 UTC) #11
msw
lgtm
6 years, 4 months ago (2014-08-25 19:10:59 UTC) #12
Mike Lerman
Thanks, Mike!
6 years, 4 months ago (2014-08-25 19:13:12 UTC) #13
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 4 months ago (2014-08-25 20:04:41 UTC) #14
Mike Lerman
The CQ bit was unchecked by mlerman@chromium.org
6 years, 4 months ago (2014-08-25 20:04:53 UTC) #15
Mike Lerman
The CQ bit was checked by mlerman@chromium.org
6 years, 3 months ago (2014-08-26 12:33:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mlerman@chromium.org/497783002/80001
6 years, 3 months ago (2014-08-26 12:34:02 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (80001) as ecd6aec58070af310d7c06acb3a4202d560d78ce
6 years, 3 months ago (2014-08-26 13:26:55 UTC) #18
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:42:34 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/866872d0b9bc0c42005bd937c51b93e7e14e1faa
Cr-Commit-Position: refs/heads/master@{#291896}

Powered by Google App Engine
This is Rietveld 408576698