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

Unified Diff: components/sync/engine_impl/directory_update_handler.cc

Issue 2782573002: [Sync] Refactor ModelSafeWorker::DoWorkAndWaitUntilDone() to avoid code duplication. (Closed)
Patch Set: self-review Created 3 years, 8 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 | « components/sync/engine/ui_model_worker_unittest.cc ('k') | components/sync/test/engine/fake_model_worker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine_impl/directory_update_handler.cc
diff --git a/components/sync/engine_impl/directory_update_handler.cc b/components/sync/engine_impl/directory_update_handler.cc
index 495346cf79eb9fced6677ae07e243eeccae0a15e..7b71cf6e90c79b98a4eb23619f1407bbd20d41bb 100644
--- a/components/sync/engine_impl/directory_update_handler.cc
+++ b/components/sync/engine_impl/directory_update_handler.cc
@@ -6,6 +6,7 @@
#include <stdint.h>
+#include <utility>
#include <vector>
#include "base/memory/ptr_util.h"
@@ -127,7 +128,7 @@ void DirectoryUpdateHandler::ApplyUpdates(StatusController* status) {
// We wait until the callback is executed. We can safely use
// Unretained.
base::Unretained(this), base::Unretained(status));
- worker_->DoWorkAndWaitUntilDone(c);
+ worker_->DoWorkAndWaitUntilDone(std::move(c));
debug_info_emitter_->EmitUpdateCountersUpdate();
debug_info_emitter_->EmitStatusCountersUpdate();
« no previous file with comments | « components/sync/engine/ui_model_worker_unittest.cc ('k') | components/sync/test/engine/fake_model_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698