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

Unified Diff: chrome/browser/safe_browsing/browser_feature_extractor.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/safe_browsing/browser_feature_extractor.cc
diff --git a/chrome/browser/safe_browsing/browser_feature_extractor.cc b/chrome/browser/safe_browsing/browser_feature_extractor.cc
index bcec8a7b39fcb0be21f98334738b610ab2e99a79..29b4d4a7d51db34d19dc789eb63594398498baf0 100644
--- a/chrome/browser/safe_browsing/browser_feature_extractor.cc
+++ b/chrome/browser/safe_browsing/browser_feature_extractor.cc
@@ -10,8 +10,11 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/format_macros.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
#include "base/strings/stringprintf.h"
+#include "base/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/profiles/profile.h"
@@ -236,12 +239,10 @@ void BrowserFeatureExtractor::ExtractFeatures(const BrowseInfo* info,
scoped_ptr<ClientPhishingRequest> req(request);
ExtractBrowseInfoFeatures(*info, request);
- base::MessageLoop::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&BrowserFeatureExtractor::StartExtractFeatures,
- weak_factory_.GetWeakPtr(),
- base::Passed(&req),
- callback));
+ weak_factory_.GetWeakPtr(), base::Passed(&req), callback));
}
void BrowserFeatureExtractor::ExtractMalwareFeatures(

Powered by Google App Engine
This is Rietveld 408576698