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

Unified Diff: components/sync_driver/ui_data_type_controller.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers Created 5 years 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/ui_data_type_controller.cc
diff --git a/components/sync_driver/ui_data_type_controller.cc b/components/sync_driver/ui_data_type_controller.cc
index f0f92d2818390ab956ffe0fb743b6577d28db54f..bf4101fbb8bb38b4c35a0a77a047d5d3549757d7 100644
--- a/components/sync_driver/ui_data_type_controller.cc
+++ b/components/sync_driver/ui_data_type_controller.cc
@@ -4,6 +4,8 @@
#include "components/sync_driver/ui_data_type_controller.h"
+#include <utility>
+
#include "base/location.h"
#include "base/logging.h"
#include "base/memory/weak_ptr.h"
@@ -47,7 +49,7 @@ UIDataTypeController::UIDataTypeController(
void UIDataTypeController::SetGenericChangeProcessorFactoryForTest(
scoped_ptr<GenericChangeProcessorFactory> factory) {
DCHECK_EQ(state_, NOT_RUNNING);
- processor_factory_ = factory.Pass();
+ processor_factory_ = std::move(factory);
}
UIDataTypeController::~UIDataTypeController() {
« no previous file with comments | « components/sync_driver/sync_api_component_factory_mock.cc ('k') | components/sync_driver/ui_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698