New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 592993 link

Starred by 3 users

Issue metadata

Status: Verified
Owner:
Closed: Apr 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Some services expect that logged-in users also have an initialized profile

Project Member Reported by atwilson@chromium.org, Mar 8 2016

Issue description

ExtensionGarbageCollector and ProfileHelper assume that any logged in users will also have an initialized profile. This is not the case, because the profile initialization process can take arbitrarily long (for example, if there is a network connectivity issue while trying to load policy).

We should update this code to check for an initialized profile explicitly rather than rely on the user's logged-in state as a proxy.
 
Status: Assigned (was: Untriaged)
Project Member

Comment 2 by bugdroid1@chromium.org, Mar 30 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f17bcd66f045d27078a29fc0ace0fa993cec3274

commit f17bcd66f045d27078a29fc0ace0fa993cec3274
Author: atwilson <atwilson@chromium.org>
Date: Wed Mar 30 13:08:11 2016

Fixed a few places that incorrectly assumed that profile was initialized

While testing a fix for crbug.com/532317, I found a few places in the code
that assumed that logged-in users would always have an associated profile.

However, it can take arbitrarily long from the time that a user logs in until
their profile finishes initialization, so code should not make this assumption.

This CL fixes the extension garbage collector and ProfileHelper to properly
handle uninitialized profiles.

BUG= 592993 

Review URL: https://codereview.chromium.org/1773113002

Cr-Commit-Position: refs/heads/master@{#383960}

[modify] https://crrev.com/f17bcd66f045d27078a29fc0ace0fa993cec3274/chrome/browser/extensions/extension_garbage_collector_chromeos.cc
[modify] https://crrev.com/f17bcd66f045d27078a29fc0ace0fa993cec3274/chrome/browser/profiles/profile_manager.cc

Project Member

Comment 3 by bugdroid1@chromium.org, Mar 30 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f17bcd66f045d27078a29fc0ace0fa993cec3274

commit f17bcd66f045d27078a29fc0ace0fa993cec3274
Author: atwilson <atwilson@chromium.org>
Date: Wed Mar 30 13:08:11 2016

Fixed a few places that incorrectly assumed that profile was initialized

While testing a fix for crbug.com/532317, I found a few places in the code
that assumed that logged-in users would always have an associated profile.

However, it can take arbitrarily long from the time that a user logs in until
their profile finishes initialization, so code should not make this assumption.

This CL fixes the extension garbage collector and ProfileHelper to properly
handle uninitialized profiles.

BUG= 592993 

Review URL: https://codereview.chromium.org/1773113002

Cr-Commit-Position: refs/heads/master@{#383960}

[modify] https://crrev.com/f17bcd66f045d27078a29fc0ace0fa993cec3274/chrome/browser/extensions/extension_garbage_collector_chromeos.cc
[modify] https://crrev.com/f17bcd66f045d27078a29fc0ace0fa993cec3274/chrome/browser/profiles/profile_manager.cc

Status: Fixed (was: Assigned)
Cc: trapti@chromium.org
Labels: -M-50 M-51
Fix is in 51.0.2695.1 (CrOS 8136.0.0). Will verify in M51-Dev 8136.0.0 or later.
Is there a need to merge this to M50?

Comment 6 by trapti@google.com, Apr 6 2016

How can we test this?Could you share some steps that could help in testing initializedprofile.
In my case, I actually modified the code to force a network timeout when trying to access DMServer. If you want to test this, you could set your router to blackhole m.google.com (so it doesn't respond with any packets at all) and try to add a managed user.

Comment 8 by trapti@chromium.org, Apr 13 2016

Status: Verified (was: Fixed)
Regression looks ok on Peppy

M	ChromeOS	Chrome	Type	Channel
51	8176.0.0	51.0.2701.0	release	dev
All programs supposed 

Sign in to add a comment