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

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

Issue 2820623002: Revert of [Sync] Refactor ModelSafeWorker::DoWorkAndWaitUntilDone() to avoid code duplication. (Closed)
Patch Set: 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 7b71cf6e90c79b98a4eb23619f1407bbd20d41bb..495346cf79eb9fced6677ae07e243eeccae0a15e 100644
--- a/components/sync/engine_impl/directory_update_handler.cc
+++ b/components/sync/engine_impl/directory_update_handler.cc
@@ -6,7 +6,6 @@
#include <stdint.h>
-#include <utility>
#include <vector>
#include "base/memory/ptr_util.h"
@@ -128,7 +127,7 @@
// We wait until the callback is executed. We can safely use
// Unretained.
base::Unretained(this), base::Unretained(status));
- worker_->DoWorkAndWaitUntilDone(std::move(c));
+ worker_->DoWorkAndWaitUntilDone(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