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

Unified Diff: chrome/browser/spellchecker/spellchecker_session_bridge_android.cc

Issue 1551033002: Convert Pass()→std::move() in //chrome (Android edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable RVO by making types match 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/spellchecker/spellchecker_session_bridge_android.cc
diff --git a/chrome/browser/spellchecker/spellchecker_session_bridge_android.cc b/chrome/browser/spellchecker/spellchecker_session_bridge_android.cc
index 03a1bb4494ae8be1bcd448a1b7aedbdb4c26dff7..d7ef4fa1f12434849633f35ded32914257a6e3d7 100644
--- a/chrome/browser/spellchecker/spellchecker_session_bridge_android.cc
+++ b/chrome/browser/spellchecker/spellchecker_session_bridge_android.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/spellchecker/spellchecker_session_bridge_android.h"
#include <stddef.h>
+#include <utility>
#include "base/android/jni_array.h"
#include "base/android/jni_string.h"
@@ -88,7 +89,7 @@ void SpellCheckerSessionBridge::ProcessSpellCheckResults(
active_request_->text, results));
}
- active_request_ = pending_request_.Pass();
+ active_request_ = std::move(pending_request_);
if (active_request_) {
JNIEnv* env = base::android::AttachCurrentThread();
Java_SpellCheckerSessionBridge_requestTextCheck(

Powered by Google App Engine
This is Rietveld 408576698