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

Unified Diff: components/webdata_services/web_data_service_wrapper.h

Issue 1144153004: components: 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, 7 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: components/webdata_services/web_data_service_wrapper.h
diff --git a/components/webdata_services/web_data_service_wrapper.h b/components/webdata_services/web_data_service_wrapper.h
index d189e837141492324ea659e6afe8d6d06b885eb8..e19dd0c274a6120f082dac0bb031632df56066e5 100644
--- a/components/webdata_services/web_data_service_wrapper.h
+++ b/components/webdata_services/web_data_service_wrapper.h
@@ -29,7 +29,7 @@ class AutofillWebDataService;
namespace base {
class FilePath;
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
} // namespace base
// WebDataServiceWrapper is a KeyedService that owns multiple WebDataServices
@@ -52,12 +52,13 @@ class WebDataServiceWrapper : public KeyedService {
// Since |flare| will be copied and called multiple times, it cannot bind
// values using base::Owned nor base::Passed; it should only bind simple or
// refcounted types.
- WebDataServiceWrapper(const base::FilePath& context_path,
- const std::string& application_locale,
- const scoped_refptr<base::MessageLoopProxy>& ui_thread,
- const scoped_refptr<base::MessageLoopProxy>& db_thread,
- const syncer::SyncableService::StartSyncFlare& flare,
- ShowErrorCallback show_error_callback);
+ WebDataServiceWrapper(
+ const base::FilePath& context_path,
+ const std::string& application_locale,
+ const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
+ const scoped_refptr<base::SingleThreadTaskRunner>& db_thread,
+ const syncer::SyncableService::StartSyncFlare& flare,
+ ShowErrorCallback show_error_callback);
~WebDataServiceWrapper() override;
// For testing.
« no previous file with comments | « components/webdata/common/web_database_service.cc ('k') | components/webdata_services/web_data_service_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698