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

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

Issue 1395103003: Don't use base::MessageLoop::{Quit,QuitClosure} in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_job.h" 5 #include "chrome/browser/printing/print_job.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 436
437 is_job_pending_ = false; 437 is_job_pending_ = false;
438 registrar_.RemoveAll(); 438 registrar_.RemoveAll();
439 UpdatePrintedDocument(NULL); 439 UpdatePrintedDocument(NULL);
440 } 440 }
441 441
442 void PrintJob::HoldUntilStopIsCalled() { 442 void PrintJob::HoldUntilStopIsCalled() {
443 } 443 }
444 444
445 void PrintJob::Quit() { 445 void PrintJob::Quit() {
446 base::MessageLoop::current()->Quit(); 446 base::MessageLoop::current()->QuitWhenIdle();
447 } 447 }
448 448
449 // Takes settings_ ownership and will be deleted in the receiving thread. 449 // Takes settings_ ownership and will be deleted in the receiving thread.
450 JobEventDetails::JobEventDetails(Type type, 450 JobEventDetails::JobEventDetails(Type type,
451 PrintedDocument* document, 451 PrintedDocument* document,
452 PrintedPage* page) 452 PrintedPage* page)
453 : document_(document), 453 : document_(document),
454 page_(page), 454 page_(page),
455 type_(type) { 455 type_(type) {
456 } 456 }
457 457
458 JobEventDetails::~JobEventDetails() { 458 JobEventDetails::~JobEventDetails() {
459 } 459 }
460 460
461 PrintedDocument* JobEventDetails::document() const { return document_.get(); } 461 PrintedDocument* JobEventDetails::document() const { return document_.get(); }
462 462
463 PrintedPage* JobEventDetails::page() const { return page_.get(); } 463 PrintedPage* JobEventDetails::page() const { return page_.get(); }
464 464
465 } // namespace printing 465 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698