OLD | NEW |
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 |
OLD | NEW |