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

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

Issue 2033753002: Remove use of deprecated MessageLoop methods in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: manual change Created 4 years, 7 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/background_printing_manager.cc
diff --git a/chrome/browser/printing/background_printing_manager.cc b/chrome/browser/printing/background_printing_manager.cc
index daa8402d85310478520a4a452168ec8631b8a407..1f81bb48a1b08aac19ae2014a01e487dcd5c2cc5 100644
--- a/chrome/browser/printing/background_printing_manager.cc
+++ b/chrome/browser/printing/background_printing_manager.cc
@@ -4,7 +4,10 @@
#include "chrome/browser/printing/background_printing_manager.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/printing/print_job.h"
#include "chrome/browser/printing/print_preview_dialog_controller.h"
@@ -114,7 +117,7 @@ void BackgroundPrintingManager::DeletePreviewContents(
// ... and mortally wound the contents. (Deletion immediately is not a good
// idea in case this was called from RenderViewGone.)
- base::MessageLoop::current()->DeleteSoon(FROM_HERE, preview_contents);
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, preview_contents);
}
std::set<content::WebContents*> BackgroundPrintingManager::CurrentContentSet() {

Powered by Google App Engine
This is Rietveld 408576698