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

Issue 330843002: Make the policy fetch for first time login blocking (Closed)

Created:
6 years, 6 months ago by kaliamoorthi
Modified:
6 years, 5 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Make the policy fetch for first time login blocking The CL makes policy fetching for first time login blocking for all users, except the ones that are known to be non-enterprise users. BUG=334584 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282925

Patch Set 1 : Changes excluding test #

Total comments: 2

Patch Set 2 : Adds a browser test for blocking policy fetch #

Patch Set 3 : After rebase #

Patch Set 4 : Rebase and fixes a build error on android #

Total comments: 31

Patch Set 5 : Fixes comments from Bartosz and a failing test #

Total comments: 2

Patch Set 6 : Adds comment in LoginUtilTest #

Total comments: 20

Patch Set 7 : Fixes nits and the LoginUtilsBrowserTests #

Total comments: 4

Patch Set 8 : Fixes nits #

Patch Set 9 : Rebased and modified existing leak suppression to account for symbol changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -64 lines) Patch
M chrome/browser/chromeos/login/login_utils_browsertest.cc View 1 2 3 4 5 6 7 8 4 chunks +44 lines, -58 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_browsertest.cc View 1 2 3 4 5 6 1 chunk +187 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc View 1 2 3 4 5 6 5 chunks +13 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/in_process_browser_test.h View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/test/base/in_process_browser_test.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M tools/lsan/suppressions.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
kaliamoorthi
This is a fix for 334584. PTAL. Bartosz says the new behavior could cause a ...
6 years, 6 months ago (2014-06-13 16:05:08 UTC) #1
bartfab (slow)
To clarify, my concerns are as follows: * I see no problem with bumping the ...
6 years, 6 months ago (2014-06-16 09:37:27 UTC) #2
Andrew T Wilson (Slow)
We need a test for this. I'll follow up with an email thread with the ...
6 years, 6 months ago (2014-06-16 12:34:58 UTC) #3
kaliamoorthi
PTAL
6 years, 5 months ago (2014-07-07 14:29:10 UTC) #4
kaliamoorthi
Sinci sky@ is OOO adding jcivelli@ as a reviewer for InProcessBrowserTest changes.
6 years, 5 months ago (2014-07-07 14:32:26 UTC) #5
Jay Civelli
lgtm
6 years, 5 months ago (2014-07-07 16:28:40 UTC) #6
bartfab (slow)
https://codereview.chromium.org/330843002/diff/100001/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_browsertest.cc File chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_browsertest.cc (right): https://codereview.chromium.org/330843002/diff/100001/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_browsertest.cc#newcode1 chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_browsertest.cc:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
6 years, 5 months ago (2014-07-07 17:40:13 UTC) #7
kaliamoorthi
PTAL
6 years, 5 months ago (2014-07-08 14:43:08 UTC) #8
kaliamoorthi
Adding nkostylev@ for LoginUtilsTest changes.
6 years, 5 months ago (2014-07-08 14:49:39 UTC) #9
Nikita (slow)
https://codereview.chromium.org/330843002/diff/110001/chrome/browser/chromeos/login/login_utils_browsertest.cc File chrome/browser/chromeos/login/login_utils_browsertest.cc (right): https://codereview.chromium.org/330843002/diff/110001/chrome/browser/chromeos/login/login_utils_browsertest.cc#newcode546 chrome/browser/chromeos/login/login_utils_browsertest.cc:546: EXPECT_FALSE(prepared_profile_); Why profile will be NULL here?
6 years, 5 months ago (2014-07-08 15:08:30 UTC) #10
kaliamoorthi
https://codereview.chromium.org/330843002/diff/110001/chrome/browser/chromeos/login/login_utils_browsertest.cc File chrome/browser/chromeos/login/login_utils_browsertest.cc (right): https://codereview.chromium.org/330843002/diff/110001/chrome/browser/chromeos/login/login_utils_browsertest.cc#newcode546 chrome/browser/chromeos/login/login_utils_browsertest.cc:546: EXPECT_FALSE(prepared_profile_); On 2014/07/08 15:08:30, Nikita Kostylev wrote: > Why ...
6 years, 5 months ago (2014-07-08 15:44:34 UTC) #11
Nikita (slow)
Please add comment in the test about that. To unsubscribe from this group and stop ...
6 years, 5 months ago (2014-07-08 15:49:18 UTC) #12
kaliamoorthi
On 2014/07/08 15:49:18, Nikita Kostylev wrote: > Please add comment in the test about that. ...
6 years, 5 months ago (2014-07-08 16:37:17 UTC) #13
bartfab (slow)
https://codereview.chromium.org/330843002/diff/130001/chrome/browser/chromeos/login/login_utils_browsertest.cc File chrome/browser/chromeos/login/login_utils_browsertest.cc (right): https://codereview.chromium.org/330843002/diff/130001/chrome/browser/chromeos/login/login_utils_browsertest.cc#newcode543 chrome/browser/chromeos/login/login_utils_browsertest.cc:543: // First login in a unmanaged device would still ...
6 years, 5 months ago (2014-07-08 17:40:33 UTC) #14
Joao da Silva
The core change looks good to me. https://codereview.chromium.org/330843002/diff/130001/chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc File chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc (right): https://codereview.chromium.org/330843002/diff/130001/chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc#newcode144 chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc:144: DCHECK(!BrowserPolicyConnector::IsNonEnterpriseUser(username)); This ...
6 years, 5 months ago (2014-07-09 12:31:16 UTC) #15
Andrew T Wilson (Slow)
drive-by nits. Deferring actual review to Joao/Bartosz. https://codereview.chromium.org/330843002/diff/130001/chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc File chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc (right): https://codereview.chromium.org/330843002/diff/130001/chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc#newcode153 chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc:153: (chromeos::UserManager::Get()->IsCurrentUserNew() ? ...
6 years, 5 months ago (2014-07-09 13:37:59 UTC) #16
kaliamoorthi
PTAL https://codereview.chromium.org/330843002/diff/130001/chrome/browser/chromeos/login/login_utils_browsertest.cc File chrome/browser/chromeos/login/login_utils_browsertest.cc (right): https://codereview.chromium.org/330843002/diff/130001/chrome/browser/chromeos/login/login_utils_browsertest.cc#newcode543 chrome/browser/chromeos/login/login_utils_browsertest.cc:543: // First login in a unmanaged device would ...
6 years, 5 months ago (2014-07-11 10:05:20 UTC) #17
bartfab (slow)
Please add a TEST= line to the CL description. LGTM https://codereview.chromium.org/330843002/diff/150001/chrome/browser/chromeos/login/login_utils_browsertest.cc File chrome/browser/chromeos/login/login_utils_browsertest.cc (right): https://codereview.chromium.org/330843002/diff/150001/chrome/browser/chromeos/login/login_utils_browsertest.cc#newcode586 ...
6 years, 5 months ago (2014-07-11 11:16:45 UTC) #18
kaliamoorthi
Hi Nikita, I need an LGTM from you to land the CL. https://codereview.chromium.org/330843002/diff/150001/chrome/browser/chromeos/login/login_utils_browsertest.cc File chrome/browser/chromeos/login/login_utils_browsertest.cc ...
6 years, 5 months ago (2014-07-11 11:27:57 UTC) #19
Nikita (slow)
chrome/browser/chromeos/login/login_utils_browsertest.cc lgtm
6 years, 5 months ago (2014-07-14 09:19:42 UTC) #20
kaliamoorthi
The CQ bit was checked by kaliamoorthi@chromium.org
6 years, 5 months ago (2014-07-14 09:21:22 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaliamoorthi@chromium.org/330843002/170001
6 years, 5 months ago (2014-07-14 09:21:35 UTC) #22
commit-bot: I haz the power
6 years, 5 months ago (2014-07-14 09:56:54 UTC) #23
Message was sent while issue was closed.
Change committed as 282925

Powered by Google App Engine
This is Rietveld 408576698