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

Unified Diff: chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.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/dom_distiller/dom_distiller_viewer_source_browsertest.cc
diff --git a/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc b/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc
index 9c69f4d62736b488c6cc119d63a9592ee913de43..323949a94af58d9fb92a87018fd651cc69027700 100644
--- a/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc
+++ b/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <string.h>
+#include <utility>
#include "base/command_line.h"
#include "base/guid.h"
@@ -145,7 +146,7 @@ class DomDistillerViewerSourceBrowserTest : public InProcessBrowserTest {
EXPECT_CALL(*distiller_page_factory_, CreateDistillerPageImpl())
.WillOnce(testing::Return(distiller_page));
}
- return service.Pass();
+ return std::move(service);
}
void ViewSingleDistilledPage(const GURL& url,
@@ -484,7 +485,7 @@ IN_PROC_BROWSER_TEST_F(DomDistillerViewerSourceBrowserTest, MultiPageArticle) {
}
// Complete the load.
- distiller->RunDistillerCallback(article.Pass());
+ distiller->RunDistillerCallback(std::move(article));
base::RunLoop().RunUntilIdle();
std::string result;

Powered by Google App Engine
This is Rietveld 408576698