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

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

Issue 2409083003: Remove MessageLoop::current() from history_url_provider.cc (Closed)
Patch Set: CR pkasting 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..11c3acedefbec75e6b911f9e4856dc94319f5989 100644
--- a/components/omnibox/browser/history_url_provider.h
+++ b/components/omnibox/browser/history_url_provider.h
@@ -13,6 +13,7 @@
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "base/synchronization/cancellation_flag.h"
#include "base/threading/thread_checker.h"
#include "components/history/core/browser/history_match.h"
@@ -25,7 +26,7 @@ class AutocompleteProviderListener;
class SearchTermsData;
namespace base {
-class MessageLoop;
+class SequencedTaskRunner;
}
namespace history {
@@ -107,7 +108,7 @@ struct HistoryURLProviderParams {
const SearchTermsData& search_terms_data);
~HistoryURLProviderParams();
- base::MessageLoop* message_loop;
+ const scoped_refptr<base::SequencedTaskRunner> origin_task_runner;
// 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