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

Unified Diff: chrome/service/cloud_print/printer_job_handler.cc

Issue 2283373002: Remove unneeded scoped_refptr<>::get() on method binding (Closed)
Patch Set: Created 4 years, 4 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/service/cloud_print/cloud_print_proxy_backend.cc ('k') | chrome/utility/profile_import_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/printer_job_handler.cc
diff --git a/chrome/service/cloud_print/printer_job_handler.cc b/chrome/service/cloud_print/printer_job_handler.cc
index 7547a0eeb04963441dc585df6b4f066766756c42..a8eecbfb90f2184b35586a936416cc02546da67c 100644
--- a/chrome/service/cloud_print/printer_job_handler.cc
+++ b/chrome/service/cloud_print/printer_job_handler.cc
@@ -241,7 +241,7 @@ void PrinterJobHandler::OnJobChanged() {
// and have them check for updates.
for (const auto& it : job_status_updater_list_) {
base::ThreadTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(&JobStatusUpdater::UpdateStatus, it.get()));
+ FROM_HERE, base::Bind(&JobStatusUpdater::UpdateStatus, it));
}
}
@@ -623,7 +623,7 @@ void PrinterJobHandler::JobSpooled(PlatformJobId local_job_id) {
job_status_updater_list_.push_back(job_status_updater);
base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
- base::Bind(&JobStatusUpdater::UpdateStatus, job_status_updater.get()));
+ base::Bind(&JobStatusUpdater::UpdateStatus, job_status_updater));
CheckForJobs(kJobFetchReasonQueryMore);
« no previous file with comments | « chrome/service/cloud_print/cloud_print_proxy_backend.cc ('k') | chrome/utility/profile_import_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698