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

Unified Diff: third_party/WebKit/Source/core/html/forms/FormController.cpp

Issue 1983753002: Remove OwnPtr::release() calls in core/ (part 2). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/core/html/forms/FormController.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/FormController.cpp b/third_party/WebKit/Source/core/html/forms/FormController.cpp
index fecdd45079f42fc87d1d6e64db5cb66ca6b5d001..f9c01cbfea366990b64929b04ce68a4cd31d4da7 100644
--- a/third_party/WebKit/Source/core/html/forms/FormController.cpp
+++ b/third_party/WebKit/Source/core/html/forms/FormController.cpp
@@ -222,7 +222,7 @@ PassOwnPtr<SavedFormState> SavedFormState::deserialize(const Vector<String>& sta
return nullptr;
savedFormState->appendControlState(AtomicString(name), AtomicString(type), state);
}
- return savedFormState.release();
+ return savedFormState;
}
void SavedFormState::serializeTo(Vector<String>& stateVector) const
@@ -493,7 +493,7 @@ void FormController::formStatesFromStateVector(const Vector<String>& stateVector
i = 0;
break;
}
- map.add(formKey, state.release());
+ map.add(formKey, std::move(state));
}
if (i != stateVector.size())
map.clear();

Powered by Google App Engine
This is Rietveld 408576698