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

Unified Diff: ios/chrome/browser/dom_distiller/distiller_viewer.cc

Issue 1586833002: Convert Pass()→std::move() for iOS build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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: ios/chrome/browser/dom_distiller/distiller_viewer.cc
diff --git a/ios/chrome/browser/dom_distiller/distiller_viewer.cc b/ios/chrome/browser/dom_distiller/distiller_viewer.cc
index 9ec395286236817b1cdf90e60351197887721e52..dd08d2c772fa99e6919e9d142e29416feb0a1d8a 100644
--- a/ios/chrome/browser/dom_distiller/distiller_viewer.cc
+++ b/ios/chrome/browser/dom_distiller/distiller_viewer.cc
@@ -5,6 +5,7 @@
#include "ios/chrome/browser/dom_distiller/distiller_viewer.h"
#include <string>
+#include <utility>
#include "components/dom_distiller/core/distilled_page_prefs.h"
#include "components/dom_distiller/core/dom_distiller_request_view_base.h"
@@ -34,7 +35,7 @@ DistillerViewer::DistillerViewer(ios::ChromeBrowserState* browser_state,
scoped_ptr<ViewerHandle> viewer_handle = distillerService->ViewUrl(
this, distillerService->CreateDefaultDistillerPage(gfx::Size()), url);
- TakeViewerHandle(viewer_handle.Pass());
+ TakeViewerHandle(std::move(viewer_handle));
}
DistillerViewer::~DistillerViewer() {

Powered by Google App Engine
This is Rietveld 408576698