Commit 98273626 authored by Pranav Batra's avatar Pranav Batra Committed by Commit Bot

cups_printers_manager: Update fingerprints on printer removal

This change is necessary for the new pita printer tast tests to work
properly.

BUG=none
TEST=tast run -buildbundle pita <DUT> printer.*

Change-Id: Ie7898f067e150336f3706101c3fa3ba6dd2a1b70
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2470118
Commit-Queue: Pranav Batra <batrapranav@chromium.org>
Reviewed-by: default avatarLuum Habtemariam <luum@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818146}
parent 590f1f9e
......@@ -174,6 +174,7 @@ class CupsPrintersManagerImpl
// Public API function.
void RemoveSavedPrinter(const std::string& printer_id) override {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_);
installed_printer_fingerprints_.erase(printer_id);
auto existing = synced_printers_manager_->GetPrinter(printer_id);
if (existing) {
event_tracker_->RecordPrinterRemoved(*existing);
......@@ -780,7 +781,8 @@ void CupsPrintersManager::RegisterProfilePrefs(
}
// static
void CupsPrintersManager::RegisterLocalStatePrefs(PrefRegistrySimple* registry) {
void CupsPrintersManager::RegisterLocalStatePrefs(
PrefRegistrySimple* registry) {
PrintServersProvider::RegisterLocalStatePrefs(registry);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment