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

Unified Diff: chrome/renderer/safe_browsing/phishing_term_feature_extractor.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/renderer/safe_browsing/phishing_term_feature_extractor.cc
diff --git a/chrome/renderer/safe_browsing/phishing_term_feature_extractor.cc b/chrome/renderer/safe_browsing/phishing_term_feature_extractor.cc
index 50b67082362afc391cb2cc455df4e8f6a4196312..9169d424ac13044ac62d97b82d27c9a9fbd6ce33 100644
--- a/chrome/renderer/safe_browsing/phishing_term_feature_extractor.cc
+++ b/chrome/renderer/safe_browsing/phishing_term_feature_extractor.cc
@@ -6,6 +6,7 @@
#include <list>
#include <map>
+#include <utility>
#include "base/bind.h"
#include "base/compiler_specific.h"
@@ -75,7 +76,7 @@ struct PhishingTermFeatureExtractor::ExtractionState {
text, base::i18n::BreakIterator::BREAK_WORD));
if (i->Init()) {
- iterator = i.Pass();
+ iterator = std::move(i);
} else {
DLOG(ERROR) << "failed to open iterator";
}

Powered by Google App Engine
This is Rietveld 408576698