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

Unified Diff: components/autofill/core/browser/webdata/autofill_webdata_backend_impl.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_backend_impl.h
diff --git a/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h b/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h
index 18c54f7b74c9d1b807881c0eb1f29716319a3ddb..77d9101ecfcd25bf7beea66c7f4d4c7f42b97723 100644
--- a/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h
+++ b/components/autofill/core/browser/webdata/autofill_webdata_backend_impl.h
@@ -19,7 +19,7 @@
#include "components/webdata/common/web_database.h"
namespace base {
-class MessageLoopProxy;
+class SingleThreadTaskRunner;
}
class WebDatabaseBackend;
@@ -48,8 +48,8 @@ class AutofillWebDataBackendImpl
// times).
AutofillWebDataBackendImpl(
scoped_refptr<WebDatabaseBackend> web_database_backend,
- 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 base::Closure& on_changed_callback);
// AutofillWebDataBackend implementation.
@@ -187,11 +187,11 @@ class AutofillWebDataBackendImpl
DISALLOW_COPY_AND_ASSIGN(SupportsUserDataAggregatable);
};
- // 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_;
// Storage for user data to be accessed only on the DB thread. May
// be used e.g. for SyncableService subclasses that need to be owned

Powered by Google App Engine
This is Rietveld 408576698