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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_database.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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
Index: chrome/browser/safe_browsing/safe_browsing_database.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_database.cc b/chrome/browser/safe_browsing/safe_browsing_database.cc
index 06b53c9202231e194d64e64a974cb2fbbf40f1ff..b4b7cd288bc65a43fa794a49795b5ddf62709ba8 100644
--- a/chrome/browser/safe_browsing/safe_browsing_database.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_database.cc
@@ -6,9 +6,9 @@
#include <stddef.h>
#include <stdint.h>
-
#include <algorithm>
#include <iterator>
+#include <utility>
#include "base/bind.h"
#include "base/files/file_util.h"
@@ -1411,8 +1411,8 @@ void SafeBrowsingDatabaseNew::UpdatePrefixSetUrlStore(
}
// Swap in the newly built filter.
- state_manager_.BeginWriteTransaction()->SwapPrefixSet(prefix_set_id,
- new_prefix_set.Pass());
+ state_manager_.BeginWriteTransaction()->SwapPrefixSet(
+ prefix_set_id, std::move(new_prefix_set));
UMA_HISTOGRAM_LONG_TIMES("SB2.BuildFilter", base::TimeTicks::Now() - before);
@@ -1520,7 +1520,7 @@ void SafeBrowsingDatabaseNew::LoadPrefixSet(const base::FilePath& db_filename,
PrefixSet::LoadFile(PrefixSetForFilename(db_filename));
if (!new_prefix_set.get())
RecordFailure(read_failure_type);
- txn->SwapPrefixSet(prefix_set_id, new_prefix_set.Pass());
+ txn->SwapPrefixSet(prefix_set_id, std::move(new_prefix_set));
UMA_HISTOGRAM_TIMES("SB2.PrefixSetLoad", base::TimeTicks::Now() - before);
}

Powered by Google App Engine
This is Rietveld 408576698