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

Issue 766661 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug

Blocked on:
issue 709094

Blocking:
issue 625126



Sign in to add a comment

chrome://settings/cupsPrinters is sometimes empty on relogin

Project Member Reported by vkuzkokov@chromium.org, Sep 19 2017

Issue description

Chrome Version: ToT
OS: ChromeOS

What steps will reproduce the problem?
(0) have a printer configured
(1) open chrome://settings/cupsPrinters
(2) logout
(3) login

What is the expected result?
List of configured printers.

What happens instead?
Sometimes the list of printers is empty.

There's a race here:
https://cs.chromium.org/chromium/src/chrome/browser/chromeos/printing/synced_printers_manager.cc?l=62
If we call this before PrintersSyncBridge is initialized we're gonna have a bad time.
 

Comment 1 by skau@chromium.org, Sep 19 2017

Blockedon: 709094
We've generally assumed that ModelTypeStore is ready when we make this call so I'm not sure that's the root cause.  It is being tracked by the Chrome Sync team but it hasn't been touched yet.
Blocking: 625126

Comment 4 by skau@chromium.org, Sep 21 2017

Cc: skau@chromium.org
Project Member

Comment 5 by bugdroid1@chromium.org, Oct 12 2017

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

commit 5a533cf6b8bfd6b8fa7393c8b09d44e0c5c8fbd0
Author: Vladislav Kuzkokov <vkuzkokov@chromium.org>
Date: Thu Oct 12 13:13:44 2017

Fix race in SyncedPrintersManager.

If SyncedPrintersManagerImpl is created before PrintersSyncBridge read printers,
we get an empty list.

Bug:  766661 
Change-Id: Ia728180e1e11b290f5c8ce3da5a89d6d864c1264
Reviewed-on: https://chromium-review.googlesource.com/675114
Commit-Queue: Vladislav Kuzkokov <vkuzkokov@chromium.org>
Reviewed-by: Sean Kau <skau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#508330}
[modify] https://crrev.com/5a533cf6b8bfd6b8fa7393c8b09d44e0c5c8fbd0/chrome/browser/chromeos/printing/printers_sync_bridge.cc
[modify] https://crrev.com/5a533cf6b8bfd6b8fa7393c8b09d44e0c5c8fbd0/chrome/browser/chromeos/printing/printers_sync_bridge.h
[modify] https://crrev.com/5a533cf6b8bfd6b8fa7393c8b09d44e0c5c8fbd0/chrome/browser/chromeos/printing/synced_printers_manager.cc

Comment 6 by skau@chromium.org, Nov 3 2017

Labels: M-63
Status: Fixed (was: Assigned)
I'm fairly certain this is fixed.  The commit landed in M63.

Commit "5a533cf6" data not found.

Looking at prefix short commits...

Commit 5a533cf6... initially landed in 63.0.3239.0

No merges found.

Sign in to add a comment