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

Unified Diff: components/sync_driver/sync_api_component_factory_mock.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/sync_api_component_factory_mock.cc
diff --git a/components/sync_driver/sync_api_component_factory_mock.cc b/components/sync_driver/sync_api_component_factory_mock.cc
index f71e1b29144829da2e7fb01329ed5b8a0d1730cd..81a3c5b3a8ae7aa2b189975477bd81c2091f79d5 100644
--- a/components/sync_driver/sync_api_component_factory_mock.cc
+++ b/components/sync_driver/sync_api_component_factory_mock.cc
@@ -4,6 +4,8 @@
#include "components/sync_driver/sync_api_component_factory_mock.h"
+#include <utility>
+
#include "components/sync_driver/change_processor.h"
#include "components/sync_driver/local_device_info_provider_mock.h"
#include "components/sync_driver/model_associator.h"
@@ -52,10 +54,10 @@ SyncApiComponentFactoryMock::MakeSyncComponents() {
scoped_ptr<sync_driver::LocalDeviceInfoProvider>
SyncApiComponentFactoryMock::CreateLocalDeviceInfoProvider() {
- return local_device_.Pass();
+ return std::move(local_device_);
}
void SyncApiComponentFactoryMock::SetLocalDeviceInfoProvider(
scoped_ptr<sync_driver::LocalDeviceInfoProvider> local_device) {
- local_device_ = local_device.Pass();
+ local_device_ = std::move(local_device);
}
« no previous file with comments | « components/sync_driver/shared_change_processor.cc ('k') | components/sync_driver/ui_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698