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

Unified Diff: apps/saved_files_service.cc

Issue 1550693002: Global conversion of Pass()→std::move() on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « apps/custom_launcher_page_contents.cc ('k') | cloud_print/service/service_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/saved_files_service.cc
diff --git a/apps/saved_files_service.cc b/apps/saved_files_service.cc
index d166338a2ca93b63c62c095ad753516c2be60699..bfe402784d9d1ee322ebcc4ca2eb1759d5f957e4 100644
--- a/apps/saved_files_service.cc
+++ b/apps/saved_files_service.cc
@@ -5,9 +5,9 @@
#include "apps/saved_files_service.h"
#include <stdint.h>
-
#include <algorithm>
#include <map>
+#include <utility>
#include "apps/saved_files_service_factory.h"
#include "base/containers/scoped_ptr_hash_map.h"
@@ -423,7 +423,7 @@ void SavedFilesService::SavedFiles::LoadSavedFileEntriesFromPreferences() {
const std::string& id = file_entry->id;
saved_file_lru_.insert(
std::make_pair(file_entry->sequence_number, file_entry.get()));
- registered_file_entries_.add(id, file_entry.Pass());
+ registered_file_entries_.add(id, std::move(file_entry));
}
}
« no previous file with comments | « apps/custom_launcher_page_contents.cc ('k') | cloud_print/service/service_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698