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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_distiller.cc

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (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/ui/webui/print_preview/print_preview_distiller.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_distiller.cc b/chrome/browser/ui/webui/print_preview/print_preview_distiller.cc
index 4b2d2357b6cb25c2f5a05e915e721b02e139021e..f3076d92fcdc5cc124ac5afff6cd3a56280d1502 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_distiller.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_distiller.cc
@@ -5,8 +5,8 @@
#include "chrome/browser/ui/webui/print_preview/print_preview_distiller.h"
#include <stdint.h>
-
#include <string>
+#include <utility>
#include "base/command_line.h"
#include "base/feature_list.h"
@@ -46,7 +46,7 @@ class PrintPreviewDistiller::WebContentsDelegateImpl
scoped_ptr<base::DictionaryValue> settings,
const base::Closure on_failed_callback)
: content::WebContentsObserver(web_contents),
- settings_(settings.Pass()),
+ settings_(std::move(settings)),
on_failed_callback_(on_failed_callback) {
web_contents->SetDelegate(this);
@@ -224,7 +224,7 @@ PrintPreviewDistiller::PrintPreviewDistiller(
content::SessionStorageNamespace* session_storage_namespace =
source_web_contents->GetController().GetDefaultSessionStorageNamespace();
CreateDestinationWebContents(session_storage_namespace, source_web_contents,
- settings.Pass(), on_failed_callback);
+ std::move(settings), on_failed_callback);
DCHECK(web_contents_);
::DistillAndView(source_web_contents, web_contents_.get());
@@ -244,7 +244,7 @@ void PrintPreviewDistiller::CreateDestinationWebContents(
web_contents_.get());
web_contents_delegate_.reset(new WebContentsDelegateImpl(
- web_contents_.get(), settings.Pass(), on_failed_callback));
+ web_contents_.get(), std::move(settings), on_failed_callback));
// Set the size of the distilled WebContents.
ResizeWebContents(web_contents_.get(), gfx::Size(1, 1));

Powered by Google App Engine
This is Rietveld 408576698