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

Unified Diff: chrome/browser/printing/print_system_task_proxy.cc

Issue 15987009: Update chrome/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
Index: chrome/browser/printing/print_system_task_proxy.cc
diff --git a/chrome/browser/printing/print_system_task_proxy.cc b/chrome/browser/printing/print_system_task_proxy.cc
index e3a924fd55c60ff7e98a2800dd256197555f093a..0868c1dbb778983aae5608b295a15ec8516953ec 100644
--- a/chrome/browser/printing/print_system_task_proxy.cc
+++ b/chrome/browser/printing/print_system_task_proxy.cc
@@ -63,7 +63,7 @@ void PrintSystemTaskProxy::GetDefaultPrinter() {
void PrintSystemTaskProxy::SendDefaultPrinter(
const std::string& default_printer,
const std::string& cloud_print_data) {
- if (handler_)
+ if (handler_.get())
handler_->SendInitialSettings(default_printer, cloud_print_data);
}
@@ -104,7 +104,7 @@ void PrintSystemTaskProxy::EnumeratePrinters() {
}
void PrintSystemTaskProxy::SetupPrinterList(ListValue* printers) {
- if (handler_)
+ if (handler_.get())
handler_->SetupPrinterList(*printers);
delete printers;
}
@@ -162,13 +162,13 @@ void PrintSystemTaskProxy::GetPrinterCapabilities(
void PrintSystemTaskProxy::SendPrinterCapabilities(
DictionaryValue* settings_info) {
- if (handler_)
+ if (handler_.get())
handler_->SendPrinterCapabilities(*settings_info);
delete settings_info;
}
void PrintSystemTaskProxy::SendFailedToGetPrinterCapabilities(
const std::string& printer_name) {
- if (handler_)
+ if (handler_.get())
handler_->SendFailedToGetPrinterCapabilities(printer_name);
}
« no previous file with comments | « chrome/browser/printing/print_dialog_cloud_unittest.cc ('k') | chrome/browser/search_engines/search_provider_install_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698