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

Side by Side Diff: third_party/WebKit/Source/platform/credentialmanager/PlatformFederatedCredential.cpp

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 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 "platform/credentialmanager/PlatformFederatedCredential.h" 5 #include "platform/credentialmanager/PlatformFederatedCredential.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 PlatformFederatedCredential* PlatformFederatedCredential::create( 9 PlatformFederatedCredential* PlatformFederatedCredential::create(
10 const String& id, 10 const String& id,
11 PassRefPtr<SecurityOrigin> provider, 11 PassRefPtr<SecurityOrigin> provider,
12 const String& name, 12 const String& name,
13 const KURL& iconURL) { 13 const KURL& iconURL) {
14 return new PlatformFederatedCredential(id, std::move(provider), name, 14 return new PlatformFederatedCredential(id, std::move(provider), name,
15 iconURL); 15 iconURL);
16 } 16 }
17 17
18 PlatformFederatedCredential::PlatformFederatedCredential( 18 PlatformFederatedCredential::PlatformFederatedCredential(
19 const String& id, 19 const String& id,
20 PassRefPtr<SecurityOrigin> provider, 20 PassRefPtr<SecurityOrigin> provider,
21 const String& name, 21 const String& name,
22 const KURL& iconURL) 22 const KURL& iconURL)
23 : PlatformCredential(id, name, iconURL), m_provider(provider) { 23 : PlatformCredential(id, name, iconURL), m_provider(std::move(provider)) {
24 setType("federated"); 24 setType("federated");
25 } 25 }
26 26
27 PlatformFederatedCredential::~PlatformFederatedCredential() {} 27 PlatformFederatedCredential::~PlatformFederatedCredential() {}
28 28
29 } // namespace blink 29 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/blob/BlobData.h ('k') | third_party/WebKit/Source/platform/fonts/FontCacheKey.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698