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

Unified Diff: components/sync_sessions/favicon_cache.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_sessions/favicon_cache.cc
diff --git a/components/sync_sessions/favicon_cache.cc b/components/sync_sessions/favicon_cache.cc
index 3055a2445549c0d7e6d0e2b14920ea312170be99..6f62971b411500dd8b72f99e5391cdc57dc077db 100644
--- a/components/sync_sessions/favicon_cache.cc
+++ b/components/sync_sessions/favicon_cache.cc
@@ -4,6 +4,8 @@
#include "components/sync_sessions/favicon_cache.h"
+#include <utility>
+
#include "base/location.h"
#include "base/macros.h"
#include "base/metrics/histogram.h"
@@ -243,9 +245,9 @@ syncer::SyncMergeResult FaviconCache::MergeDataAndStartSyncing(
scoped_ptr<syncer::SyncErrorFactory> error_handler) {
DCHECK(type == syncer::FAVICON_IMAGES || type == syncer::FAVICON_TRACKING);
if (type == syncer::FAVICON_IMAGES)
- favicon_images_sync_processor_ = sync_processor.Pass();
+ favicon_images_sync_processor_ = std::move(sync_processor);
else
- favicon_tracking_sync_processor_ = sync_processor.Pass();
+ favicon_tracking_sync_processor_ = std::move(sync_processor);
syncer::SyncMergeResult merge_result(type);
merge_result.set_num_items_before_association(synced_favicons_.size());

Powered by Google App Engine
This is Rietveld 408576698