| Index: chrome/browser/ui/webui/print_preview/print_preview_handler.cc
|
| diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
|
| index d3489619df5a07d5b47a0cdf8603268f853f548b..a1d22f1203d7250aac2f3c1a280d17d95dfb2457 100644
|
| --- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
|
| +++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
|
| @@ -1363,13 +1363,14 @@ bool PrintPreviewHandler::GetPreviewDataAndTitle(
|
|
|
| #if defined(ENABLE_SERVICE_DISCOVERY)
|
|
|
| -void PrintPreviewHandler::StartPrivetLister(
|
| - scoped_refptr<local_discovery::ServiceDiscoverySharedClient> client) {
|
| +void PrintPreviewHandler::StartPrivetLister(const scoped_refptr<
|
| + local_discovery::ServiceDiscoverySharedClient>& client) {
|
| if (!PrivetPrintingEnabled())
|
| return web_ui()->CallJavascriptFunction("onPrivetPrinterSearchDone");
|
|
|
| Profile* profile = Profile::FromWebUI(web_ui());
|
| - DCHECK(!service_discovery_client_ || service_discovery_client_ == client);
|
| + DCHECK(!service_discovery_client_.get() ||
|
| + service_discovery_client_ == client);
|
| service_discovery_client_ = client;
|
| printer_lister_.reset(new local_discovery::PrivetLocalPrinterLister(
|
| service_discovery_client_.get(), profile->GetRequestContext(), this));
|
|
|