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

Unified Diff: components/sync_driver/data_type_controller.h

Issue 369703003: Reduce usage of MessageLoopProxy in base/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 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
Index: components/sync_driver/data_type_controller.h
diff --git a/components/sync_driver/data_type_controller.h b/components/sync_driver/data_type_controller.h
index 629919d00304524b6fc081fdb8fd9ba778adbac8..7af4da8caee74e4828b5ca47ed5ed1d3096b6bf1 100644
--- a/components/sync_driver/data_type_controller.h
+++ b/components/sync_driver/data_type_controller.h
@@ -11,7 +11,7 @@
#include "base/callback.h"
#include "base/location.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/ref_counted_delete_on_message_loop.h"
+#include "base/memory/ref_counted_delete_on_task_runner.h"
#include "base/sequenced_task_runner_helpers.h"
#include "components/sync_driver/data_type_error_handler.h"
#include "sync/api/sync_merge_result.h"
@@ -31,7 +31,7 @@ class ChangeProcessor;
// Data type controllers need to be refcounted threadsafe, as they may
// need to run model associator or change processor on other threads.
class DataTypeController
- : public base::RefCountedDeleteOnMessageLoop<DataTypeController>,
+ : public base::RefCountedDeleteOnTaskRunner<DataTypeController>,
public DataTypeErrorHandler {
public:
enum State {
@@ -145,7 +145,7 @@ class DataTypeController
virtual bool ReadyForStart() const;
protected:
- friend class base::RefCountedDeleteOnMessageLoop<DataTypeController>;
+ friend class base::RefCountedDeleteOnTaskRunner<DataTypeController>;
friend class base::DeleteHelper<DataTypeController>;
DataTypeController(scoped_refptr<base::MessageLoopProxy> ui_thread,
« no previous file with comments | « components/signin/core/browser/webdata/token_web_data.cc ('k') | components/sync_driver/data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698