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

Unified Diff: components/autofill/core/browser/webdata/autofill_webdata_service.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/autofill/core/browser/webdata/autofill_webdata_service.h
diff --git a/components/autofill/core/browser/webdata/autofill_webdata_service.h b/components/autofill/core/browser/webdata/autofill_webdata_service.h
index 221e49b3f6e6d2eaa85f05298cb47a205c4baad8..1c57e8e2bcf92cf809e7e19f44882143de5c82c2 100644
--- a/components/autofill/core/browser/webdata/autofill_webdata_service.h
+++ b/components/autofill/core/browser/webdata/autofill_webdata_service.h
@@ -21,7 +21,7 @@
class WebDatabaseService;
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
}
namespace autofill {
@@ -39,11 +39,11 @@ class CreditCard;
class AutofillWebDataService : public AutofillWebData,
public WebDataServiceBase {
public:
- AutofillWebDataService(scoped_refptr<base::MessageLoopProxy> ui_thread,
- scoped_refptr<base::MessageLoopProxy> db_thread);
+ AutofillWebDataService(scoped_refptr<base::SingleThreadTaskRunner> ui_thread,
+ scoped_refptr<base::SingleThreadTaskRunner> db_thread);
AutofillWebDataService(scoped_refptr<WebDatabaseService> wdbs,
- scoped_refptr<base::MessageLoopProxy> ui_thread,
- scoped_refptr<base::MessageLoopProxy> db_thread,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_thread,
+ scoped_refptr<base::SingleThreadTaskRunner> db_thread,
const ProfileErrorCallback& callback);
// WebDataServiceBase implementation.
@@ -132,11 +132,11 @@ class AutofillWebDataService : public AutofillWebData,
private:
ObserverList<AutofillWebDataServiceObserverOnUIThread> ui_observer_list_;
- // The MessageLoopProxy that this class uses as its UI thread.
- scoped_refptr<base::MessageLoopProxy> ui_thread_;
+ // The task runner that this class uses as its UI thread.
+ scoped_refptr<base::SingleThreadTaskRunner> ui_thread_;
- // The MessageLoopProxy that this class uses as its DB thread.
- scoped_refptr<base::MessageLoopProxy> db_thread_;
+ // The task runner that this class uses as its DB thread.
+ scoped_refptr<base::SingleThreadTaskRunner> db_thread_;
scoped_refptr<AutofillWebDataBackendImpl> autofill_backend_;

Powered by Google App Engine
This is Rietveld 408576698