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

Unified Diff: content/browser/android/in_process/context_provider_in_process.cc

Issue 1552733002: Convert Pass()→std::move() in //content (Android edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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: content/browser/android/in_process/context_provider_in_process.cc
diff --git a/content/browser/android/in_process/context_provider_in_process.cc b/content/browser/android/in_process/context_provider_in_process.cc
index b7ac81f44f81cad4781a37f7cffe60799409a384..9f4fbc2d827bb9193850ec57cc09f2689b480ed3 100644
--- a/content/browser/android/in_process/context_provider_in_process.cc
+++ b/content/browser/android/in_process/context_provider_in_process.cc
@@ -5,6 +5,7 @@
#include "content/browser/android/in_process/context_provider_in_process.h"
#include <stddef.h>
+#include <utility>
#include "base/bind.h"
#include "base/callback_helpers.h"
@@ -45,7 +46,7 @@ scoped_refptr<ContextProviderInProcess> ContextProviderInProcess::Create(
const std::string& debug_name) {
if (!context3d)
return NULL;
- return new ContextProviderInProcess(context3d.Pass(), debug_name);
+ return new ContextProviderInProcess(std::move(context3d), debug_name);
}
ContextProviderInProcess::ContextProviderInProcess(
@@ -54,8 +55,8 @@ ContextProviderInProcess::ContextProviderInProcess(
: debug_name_(debug_name) {
DCHECK(main_thread_checker_.CalledOnValidThread());
DCHECK(context3d);
- gr_interface_ = skia::AdoptRef(new GrGLInterfaceForWebGraphicsContext3D(
- context3d.Pass()));
+ gr_interface_ = skia::AdoptRef(
+ new GrGLInterfaceForWebGraphicsContext3D(std::move(context3d)));
DCHECK(gr_interface_->WebContext3D());
context_thread_checker_.DetachFromThread();
}

Powered by Google App Engine
This is Rietveld 408576698