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

Unified Diff: components/safe_browsing_db/prefix_set.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/safe_browsing_db/prefix_set.cc
diff --git a/components/safe_browsing_db/prefix_set.cc b/components/safe_browsing_db/prefix_set.cc
index b5c97d3a395209a186074ac8c45ad72d75abc2f5..f8aa9350a7a1590b80f766f40ff04c35f4e001bb 100644
--- a/components/safe_browsing_db/prefix_set.cc
+++ b/components/safe_browsing_db/prefix_set.cc
@@ -5,6 +5,7 @@
#include "components/safe_browsing_db/prefix_set.h"
#include <algorithm>
+#include <utility>
#include "base/files/file_util.h"
#include "base/files/scoped_file.h"
@@ -390,11 +391,11 @@ scoped_ptr<const PrefixSet> PrefixSetBuilder::GetPrefixSet(
std::sort(prefix_set_->full_hashes_.begin(), prefix_set_->full_hashes_.end(),
SBFullHashLess);
- return prefix_set_.Pass();
+ return std::move(prefix_set_);
}
scoped_ptr<const PrefixSet> PrefixSetBuilder::GetPrefixSetNoHashes() {
- return GetPrefixSet(std::vector<SBFullHash>()).Pass();
+ return GetPrefixSet(std::vector<SBFullHash>());
}
void PrefixSetBuilder::EmitRun() {
« no previous file with comments | « components/resource_provider/resource_provider_impl.cc ('k') | components/safe_json/safe_json_parser_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698