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

Unified Diff: chrome/browser/dom_distiller/lazy_dom_distiller_service.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/lazy_dom_distiller_service.cc
diff --git a/chrome/browser/dom_distiller/lazy_dom_distiller_service.cc b/chrome/browser/dom_distiller/lazy_dom_distiller_service.cc
index 8c90afeb7dbb03e10eca6fe5c0aef921dee01813..eefec74874803a533394554f317cbe703d33ed98 100644
--- a/chrome/browser/dom_distiller/lazy_dom_distiller_service.cc
+++ b/chrome/browser/dom_distiller/lazy_dom_distiller_service.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/dom_distiller/lazy_dom_distiller_service.h"
+#include <utility>
+
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/dom_distiller/dom_distiller_service_factory.h"
#include "chrome/browser/profiles/profile.h"
@@ -58,7 +60,7 @@ const std::string LazyDomDistillerService::AddToList(
const GURL& url,
scoped_ptr<DistillerPage> distiller_page,
const ArticleAvailableCallback& article_cb) {
- return instance()->AddToList(url, distiller_page.Pass(), article_cb);
+ return instance()->AddToList(url, std::move(distiller_page), article_cb);
}
std::vector<ArticleEntry> LazyDomDistillerService::GetEntries() const {
@@ -74,14 +76,14 @@ scoped_ptr<ViewerHandle> LazyDomDistillerService::ViewEntry(
ViewRequestDelegate* delegate,
scoped_ptr<DistillerPage> distiller_page,
const std::string& entry_id) {
- return instance()->ViewEntry(delegate, distiller_page.Pass(), entry_id);
+ return instance()->ViewEntry(delegate, std::move(distiller_page), entry_id);
}
scoped_ptr<ViewerHandle> LazyDomDistillerService::ViewUrl(
ViewRequestDelegate* delegate,
scoped_ptr<DistillerPage> distiller_page,
const GURL& url) {
- return instance()->ViewUrl(delegate, distiller_page.Pass(), url);
+ return instance()->ViewUrl(delegate, std::move(distiller_page), url);
}
scoped_ptr<DistillerPage>
@@ -93,7 +95,7 @@ LazyDomDistillerService::CreateDefaultDistillerPage(
scoped_ptr<DistillerPage>
LazyDomDistillerService::CreateDefaultDistillerPageWithHandle(
scoped_ptr<SourcePageHandle> handle) {
- return instance()->CreateDefaultDistillerPageWithHandle(handle.Pass());
+ return instance()->CreateDefaultDistillerPageWithHandle(std::move(handle));
}
void LazyDomDistillerService::AddObserver(DomDistillerObserver* observer) {

Powered by Google App Engine
This is Rietveld 408576698