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

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

Issue 509423002: Printing fixups for scoped_refptr operator T* removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error Created 6 years, 3 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 | « chrome/browser/ui/webui/print_preview/print_preview_handler.h ('k') | 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 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));
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698