Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1671)

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.cc

Issue 1087003002: Switch print preview to in browser mdns for per-user Chrome installs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tue Apr 14 12:03:18 PDT 2015 Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a8612712fbad09a8e85a42e05193275a7e2e88dc..0b769b6730c13fb3f643836c1d210aa58116062d 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -687,9 +687,10 @@ void PrintPreviewHandler::HandleGetPrivetPrinters(const base::ListValue* args) {
if (!PrivetPrintingEnabled())
return web_ui()->CallJavascriptFunction("onPrivetPrinterSearchDone");
#if defined(ENABLE_SERVICE_DISCOVERY)
- local_discovery::ServiceDiscoverySharedClient::GetInstanceWithoutAlert(
- base::Bind(&PrintPreviewHandler::StartPrivetLister,
- weak_factory_.GetWeakPtr()));
+ using local_discovery::ServiceDiscoverySharedClient;
+ scoped_refptr<ServiceDiscoverySharedClient> service_discovery =
+ ServiceDiscoverySharedClient::GetInstance();
+ StartPrivetLister(service_discovery);
#endif // ENABLE_SERVICE_DISCOVERY
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698