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

Unified Diff: components/omnibox/browser/history_url_provider.h

Issue 2409083003: Remove MessageLoop::current() from history_url_provider.cc (Closed)
Patch Set: self-review Created 4 years, 2 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 | « no previous file | components/omnibox/browser/history_url_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/history_url_provider.h
diff --git a/components/omnibox/browser/history_url_provider.h b/components/omnibox/browser/history_url_provider.h
index 23ae4c4d6efaa92ef468cbb91c2bbd27b5e43c77..5d3b72205f266c8e9499005a242774569671afe7 100644
--- a/components/omnibox/browser/history_url_provider.h
+++ b/components/omnibox/browser/history_url_provider.h
@@ -14,6 +14,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/synchronization/cancellation_flag.h"
+#include "base/threading/sequenced_task_runner_handle.h"
#include "base/threading/thread_checker.h"
#include "components/history/core/browser/history_match.h"
#include "components/omnibox/browser/autocomplete_input.h"
@@ -107,7 +108,8 @@ struct HistoryURLProviderParams {
const SearchTermsData& search_terms_data);
~HistoryURLProviderParams();
- base::MessageLoop* message_loop;
+ const scoped_refptr<base::SequencedTaskRunner> origin_task_runner =
+ base::SequencedTaskRunnerHandle::Get();
Peter Kasting 2016/10/19 18:07:11 Nit: Can we initialize this in the constructor ins
fdoray 2016/10/20 13:50:40 Done.
// A copy of the autocomplete input. We need the copy since this object will
// live beyond the original query while it runs on the history thread.
« no previous file with comments | « no previous file | components/omnibox/browser/history_url_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698