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

Unified Diff: chrome/browser/safe_browsing/client_side_detection_host_unittest.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/client_side_detection_host_unittest.cc
diff --git a/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc b/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc
index ab8c09dcd3ebb2f6e405225694359805bffcb2d3..8c90652a64176773bdadb5e4b377d93b2f14a475 100644
--- a/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc
+++ b/chrome/browser/safe_browsing/client_side_detection_host_unittest.cc
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/browser/safe_browsing/client_side_detection_host.h"
+
+#include <utility>
+
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -10,7 +14,6 @@
#include "base/strings/stringprintf.h"
#include "base/synchronization/waitable_event.h"
#include "chrome/browser/safe_browsing/browser_feature_extractor.h"
-#include "chrome/browser/safe_browsing/client_side_detection_host.h"
#include "chrome/browser/safe_browsing/client_side_detection_service.h"
#include "chrome/browser/safe_browsing/database_manager.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
@@ -97,13 +100,13 @@ ACTION(QuitUIMessageLoop) {
ACTION_P(InvokeDoneCallback, verdict) {
scoped_ptr<ClientPhishingRequest> request(::std::tr1::get<1>(args));
request->CopyFrom(*verdict);
- ::std::tr1::get<2>(args).Run(true, request.Pass());
+ ::std::tr1::get<2>(args).Run(true, std::move(request));
}
ACTION_P(InvokeMalwareCallback, verdict) {
scoped_ptr<ClientMalwareRequest> request(::std::tr1::get<1>(args));
request->CopyFrom(*verdict);
- ::std::tr1::get<2>(args).Run(true, request.Pass());
+ ::std::tr1::get<2>(args).Run(true, std::move(request));
}
void EmptyUrlCheckCallback(bool processed) {

Powered by Google App Engine
This is Rietveld 408576698