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

Side by Side Diff: chrome/browser/printing/print_view_manager_base.cc

Issue 2283373002: Remove unneeded scoped_refptr<>::get() on method binding (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/printing/print_view_manager_base.h" 5 #include "chrome/browser/printing/print_view_manager_base.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 // May be NULL in tests. 528 // May be NULL in tests.
529 if (!print_job_manager) 529 if (!print_job_manager)
530 return; 530 return;
531 531
532 scoped_refptr<PrinterQuery> printer_query; 532 scoped_refptr<PrinterQuery> printer_query;
533 printer_query = queue_->PopPrinterQuery(cookie); 533 printer_query = queue_->PopPrinterQuery(cookie);
534 if (!printer_query.get()) 534 if (!printer_query.get())
535 return; 535 return;
536 BrowserThread::PostTask( 536 BrowserThread::PostTask(
537 BrowserThread::IO, FROM_HERE, 537 BrowserThread::IO, FROM_HERE,
538 base::Bind(&PrinterQuery::StopWorker, printer_query.get())); 538 base::Bind(&PrinterQuery::StopWorker, printer_query));
539 } 539 }
540 540
541 } // namespace printing 541 } // namespace printing
OLDNEW
« no previous file with comments | « chrome/browser/extensions/zipfile_installer_unittest.cc ('k') | chrome/browser/process_singleton_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698