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

Unified Diff: components/dom_distiller/core/dom_distiller_store.cc

Issue 2521063004: Replace ptr.reset with std::move in src/components (Closed)
Patch Set: Created 4 years, 1 month 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/dom_distiller/core/dom_distiller_store.cc
diff --git a/components/dom_distiller/core/dom_distiller_store.cc b/components/dom_distiller/core/dom_distiller_store.cc
index bb4e85925c9c62810b2232943760102ca2cba723..53797a0c9cf8a150f9dadc00479fbcd64de41e92 100644
--- a/components/dom_distiller/core/dom_distiller_store.cc
+++ b/components/dom_distiller/core/dom_distiller_store.cc
@@ -287,8 +287,8 @@ SyncMergeResult DomDistillerStore::MergeDataAndStartSyncing(
DCHECK_EQ(syncer::ARTICLES, type);
DCHECK(!sync_processor_);
DCHECK(!error_factory_);
- sync_processor_.reset(sync_processor.release());
- error_factory_.reset(error_handler.release());
+ sync_processor_ = std::move(sync_processor);
+ error_factory_ = std::move(error_handler);
SyncChangeList database_changes;
SyncChangeList sync_changes;

Powered by Google App Engine
This is Rietveld 408576698