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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp

Issue 2909613002: Replaced usage of RefPtr::Release with std::move wraps. (Closed)
Patch Set: Created 3 years, 7 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: third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp
index fa26ce6c5aeeaf29190819da5069c7ecd8c15c20..bd627e6095a03126b6617b2f40ad83b5e6dc8dfa 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp
@@ -337,7 +337,7 @@ void IDBRequest::EnqueueResponse(PassRefPtr<IDBValue> prp_value) {
value->KeyPath() == EffectiveObjectStore(source_)->IdbKeyPath());
#endif
- EnqueueResultInternal(IDBAny::Create(value.Release()));
+ EnqueueResultInternal(IDBAny::Create(std::move(value)));
}
void IDBRequest::EnqueueResponse(int64_t value) {
@@ -443,10 +443,11 @@ DispatchEventResult IDBRequest::DispatchEventInternal(Event* event) {
IDBCursor* cursor_to_notify = nullptr;
if (event->type() == EventTypeNames::success) {
cursor_to_notify = GetResultCursor();
- if (cursor_to_notify)
+ if (cursor_to_notify) {
cursor_to_notify->SetValueReady(cursor_key_.Release(),
cursor_primary_key_.Release(),
- cursor_value_.Release());
+ std::move(cursor_value_));
+ }
}
if (event->type() == EventTypeNames::upgradeneeded) {

Powered by Google App Engine
This is Rietveld 408576698