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

Unified Diff: components/safe_json_parser/safe_json_parser.cc

Issue 1169923009: Remove remaining use of the deprecated MessageLoopProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 5 years, 6 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: components/safe_json_parser/safe_json_parser.cc
diff --git a/components/safe_json_parser/safe_json_parser.cc b/components/safe_json_parser/safe_json_parser.cc
index 0ad94c5bfe94a2bbb59726f260fad87e907a7b44..3f6444ff128dccc9df8ad3da3431a2e2e8489313 100644
--- a/components/safe_json_parser/safe_json_parser.cc
+++ b/components/safe_json_parser/safe_json_parser.cc
@@ -7,6 +7,7 @@
#include <string>
#include "base/strings/utf_string_conversions.h"
+#include "base/thread_task_runner_handle.h"
#include "base/tuple.h"
#include "base/values.h"
#include "components/safe_json_parser/safe_json_parser_messages.h"
@@ -41,8 +42,8 @@ SafeJsonParser::~SafeJsonParser() {
void SafeJsonParser::StartWorkOnIOThread() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- UtilityProcessHost* host =
- UtilityProcessHost::Create(this, base::MessageLoopProxy::current().get());
+ UtilityProcessHost* host = UtilityProcessHost::Create(
+ this, base::ThreadTaskRunnerHandle::Get().get());
host->SetName(
l10n_util::GetStringUTF16(IDS_UTILITY_PROCESS_JSON_PARSER_NAME));
host->Send(new SafeJsonParserMsg_ParseJSON(unsafe_json_));
« no previous file with comments | « components/proximity_auth/ble/proximity_auth_ble_system.cc ('k') | components/test_runner/web_test_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698