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

Side by Side Diff: third_party/WebKit/Source/modules/credentialmanager/PasswordCredential.cpp

Issue 2957513002: Removed calls to RefPtr::Release in return statements with auto move. (Closed)
Patch Set: rebased Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/credentialmanager/PasswordCredential.h" 5 #include "modules/credentialmanager/PasswordCredential.h"
6 6
7 #include "bindings/core/v8/Dictionary.h" 7 #include "bindings/core/v8/Dictionary.h"
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "core/HTMLNames.h" 9 #include "core/HTMLNames.h"
10 #include "core/dom/ExecutionContext.h" 10 #include "core/dom/ExecutionContext.h"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 else 172 else
173 form_data->append(name, form_data->Decode(entry->Value())); 173 form_data->append(name, form_data->Decode(entry->Value()));
174 } 174 }
175 } 175 }
176 form_data->append(idName(), id()); 176 form_data->append(idName(), id());
177 form_data->append(passwordName(), password()); 177 form_data->append(passwordName(), password());
178 178
179 RefPtr<EncodedFormData> encoded_data = form_data->EncodeMultiPartFormData(); 179 RefPtr<EncodedFormData> encoded_data = form_data->EncodeMultiPartFormData();
180 content_type = AtomicString("multipart/form-data; boundary=") + 180 content_type = AtomicString("multipart/form-data; boundary=") +
181 encoded_data->Boundary().data(); 181 encoded_data->Boundary().data();
182 return encoded_data.Release(); 182 return encoded_data;
183 } 183 }
184 184
185 DEFINE_TRACE(PasswordCredential) { 185 DEFINE_TRACE(PasswordCredential) {
186 CredentialUserData::Trace(visitor); 186 CredentialUserData::Trace(visitor);
187 visitor->Trace(additional_data_); 187 visitor->Trace(additional_data_);
188 } 188 }
189 189
190 } // namespace blink 190 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/BasicShapes.cpp ('k') | third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698