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

Unified Diff: chrome/browser/spellchecker/feedback_sender.cc

Issue 1143343005: chrome/browser: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. 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: chrome/browser/spellchecker/feedback_sender.cc
diff --git a/chrome/browser/spellchecker/feedback_sender.cc b/chrome/browser/spellchecker/feedback_sender.cc
index bce2b810fb68f60f300cbd5b1b98af23ee4dbed8..f18a3881968a81661bcbeccc2b2653db82bfc804 100644
--- a/chrome/browser/spellchecker/feedback_sender.cc
+++ b/chrome/browser/spellchecker/feedback_sender.cc
@@ -35,10 +35,13 @@
#include "base/command_line.h"
#include "base/hash.h"
#include "base/json/json_writer.h"
+#include "base/location.h"
#include "base/metrics/field_trial.h"
+#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
+#include "base/thread_task_runner_handle.h"
#include "base/values.h"
#include "chrome/browser/spellchecker/word_trimmer.h"
#include "chrome/common/chrome_switches.h"
@@ -374,12 +377,9 @@ void FeedbackSender::RequestDocumentMarkers() {
for (std::vector<int>::const_iterator it = dead_renderers.begin();
it != dead_renderers.end();
++it) {
- base::MessageLoop::current()->PostTask(
- FROM_HERE,
- base::Bind(&FeedbackSender::OnReceiveDocumentMarkers,
- AsWeakPtr(),
- *it,
- std::vector<uint32>()));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(&FeedbackSender::OnReceiveDocumentMarkers,
+ AsWeakPtr(), *it, std::vector<uint32>()));
}
}

Powered by Google App Engine
This is Rietveld 408576698