Commit beab954e authored by Piotr Pawliczek's avatar Piotr Pawliczek Committed by Commit Bot

Correct printer URI validation 2

Quick fix for a bug introduced in CL:2204269.

BUG=none, correction of typo made in other CL
TEST=none, will be tested with other CL

Change-Id: Ic97ac272545252942eb8f220336f414ac6cf90c4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2315347
Commit-Queue: Piotr Pawliczek <pawliczek@chromium.org>
Auto-Submit: Piotr Pawliczek <pawliczek@chromium.org>
Reviewed-by: default avatarSean Kau <skau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791343}
parent 5b72f4a3
...@@ -342,7 +342,7 @@ class CupsPrintersManagerImpl ...@@ -342,7 +342,7 @@ class CupsPrintersManagerImpl
} }
// Behavior for querying a non-IPP uri is undefined and disallowed. // Behavior for querying a non-IPP uri is undefined and disallowed.
if (IsIppUri(printer->uri())) { if (!IsIppUri(printer->uri())) {
PRINTER_LOG(ERROR) << "Unable to complete printer status request. " PRINTER_LOG(ERROR) << "Unable to complete printer status request. "
<< "Printer uri is invalid. Printer id: " << "Printer uri is invalid. Printer id: "
<< printer_id; << printer_id;
......
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