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

Unified Diff: chrome/browser/printing/cloud_print/privet_http_unittest.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
« no previous file with comments | « chrome/browser/printing/background_printing_manager.cc ('k') | chrome/browser/printing/print_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/cloud_print/privet_http_unittest.cc
diff --git a/chrome/browser/printing/cloud_print/privet_http_unittest.cc b/chrome/browser/printing/cloud_print/privet_http_unittest.cc
index 1452e746b61843473bf289b36dadb2913ede8e81..67516b922f7dedd155643502339cb987f8f002ac 100644
--- a/chrome/browser/printing/cloud_print/privet_http_unittest.cc
+++ b/chrome/browser/printing/cloud_print/privet_http_unittest.cc
@@ -9,8 +9,11 @@
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
+#include "base/location.h"
#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
+#include "base/single_thread_task_runner.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "chrome/browser/printing/cloud_print/privet_http_impl.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/test_browser_thread_bundle.h"
@@ -1062,14 +1065,14 @@ class PrivetHttpWithServerTest : public ::testing::Test,
success_ = false;
error_ = error;
- base::MessageLoop::current()->PostTask(FROM_HERE, quit_);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, quit_);
}
void OnParsedJson(PrivetURLFetcher* fetcher,
const base::DictionaryValue& value,
bool has_error) override {
NOTREACHED();
- base::MessageLoop::current()->PostTask(FROM_HERE, quit_);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, quit_);
}
bool OnRawData(PrivetURLFetcher* fetcher,
@@ -1079,7 +1082,7 @@ class PrivetHttpWithServerTest : public ::testing::Test,
done_ = true;
success_ = true;
- base::MessageLoop::current()->PostTask(FROM_HERE, quit_);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, quit_);
return true;
}
« no previous file with comments | « chrome/browser/printing/background_printing_manager.cc ('k') | chrome/browser/printing/print_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698