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

Unified Diff: components/safe_json/json_sanitizer_android.cc

Issue 2076163002: Migrate SequencedTaskRunnerHandle calls to TaskRunnerHandle calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mix_c_Ab_1_scheduler_support_parallelTRH
Patch Set: Created 4 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
« no previous file with comments | « chrome/browser/win/settings_app_monitor.cc ('k') | components/safe_json/safe_json_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_json/json_sanitizer_android.cc
diff --git a/components/safe_json/json_sanitizer_android.cc b/components/safe_json/json_sanitizer_android.cc
index f7f007b7b6e50819d8568ccf906ea74eafe42a9b..e4fa702675f933eeadd48a43124ca5c46b40fd89 100644
--- a/components/safe_json/json_sanitizer_android.cc
+++ b/components/safe_json/json_sanitizer_android.cc
@@ -11,7 +11,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/strings/string_util.h"
-#include "base/threading/sequenced_task_runner_handle.h"
+#include "base/threading/task_runner_handle.h"
#include "jni/JsonSanitizer_jni.h"
namespace safe_json {
@@ -75,13 +75,13 @@ void JsonSanitizerAndroid::Sanitize(const std::string& unsafe_json) {
}
void JsonSanitizerAndroid::OnSuccess(const std::string& json) {
- base::SequencedTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(success_callback_, json));
+ base::TaskRunnerHandle::Get()->PostTask(FROM_HERE,
+ base::Bind(success_callback_, json));
}
void JsonSanitizerAndroid::OnError(const std::string& error) {
- base::SequencedTaskRunnerHandle::Get()->PostTask(
- FROM_HERE, base::Bind(error_callback_, error));
+ base::TaskRunnerHandle::Get()->PostTask(FROM_HERE,
+ base::Bind(error_callback_, error));
}
} // namespace
« no previous file with comments | « chrome/browser/win/settings_app_monitor.cc ('k') | components/safe_json/safe_json_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698