Commit 7c803a90 authored by vitalybuka's avatar vitalybuka Committed by Commit bot

Switch print preview to in browser mdns for per-user Chrome installs

chrome.mdns API and chrome://devices already works this way
This may trigger some Windows Firewall allerts.

BUG=349645

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

Cr-Commit-Position: refs/heads/master@{#325505}
parent 254c7ea0
...@@ -687,9 +687,10 @@ void PrintPreviewHandler::HandleGetPrivetPrinters(const base::ListValue* args) { ...@@ -687,9 +687,10 @@ void PrintPreviewHandler::HandleGetPrivetPrinters(const base::ListValue* args) {
if (!PrivetPrintingEnabled()) if (!PrivetPrintingEnabled())
return web_ui()->CallJavascriptFunction("onPrivetPrinterSearchDone"); return web_ui()->CallJavascriptFunction("onPrivetPrinterSearchDone");
#if defined(ENABLE_SERVICE_DISCOVERY) #if defined(ENABLE_SERVICE_DISCOVERY)
local_discovery::ServiceDiscoverySharedClient::GetInstanceWithoutAlert( using local_discovery::ServiceDiscoverySharedClient;
base::Bind(&PrintPreviewHandler::StartPrivetLister, scoped_refptr<ServiceDiscoverySharedClient> service_discovery =
weak_factory_.GetWeakPtr())); ServiceDiscoverySharedClient::GetInstance();
StartPrivetLister(service_discovery);
#endif // ENABLE_SERVICE_DISCOVERY #endif // ENABLE_SERVICE_DISCOVERY
} }
......
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