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

Side by Side Diff: Source/platform/exported/WebCredential.cpp

Issue 1165673005: Credential Manager: Rename 'avatarURL' to 'iconURL'. (1/3 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@remove-local
Patch Set: Created 5 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 "config.h" 5 #include "config.h"
6 #include "public/platform/WebCredential.h" 6 #include "public/platform/WebCredential.h"
7 7
8 #include "platform/credentialmanager/PlatformCredential.h" 8 #include "platform/credentialmanager/PlatformCredential.h"
9 #include "public/platform/WebFederatedCredential.h" 9 #include "public/platform/WebFederatedCredential.h"
10 #include "public/platform/WebPasswordCredential.h" 10 #include "public/platform/WebPasswordCredential.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 WebCredential WebCredential::create(PlatformCredential* credential) 14 WebCredential WebCredential::create(PlatformCredential* credential)
15 { 15 {
16 if (credential->isPassword()) { 16 if (credential->isPassword()) {
17 WebPasswordCredential password(credential); 17 WebPasswordCredential password(credential);
18 return password; 18 return password;
19 } 19 }
20 20
21 if (credential->isFederated()) { 21 if (credential->isFederated()) {
22 WebFederatedCredential federated(credential); 22 WebFederatedCredential federated(credential);
23 return federated; 23 return federated;
24 } 24 }
25 25
26 ASSERT_NOT_REACHED(); 26 ASSERT_NOT_REACHED();
27 return WebCredential(credential); 27 return WebCredential(credential);
28 } 28 }
29 29
30 WebCredential::WebCredential(const WebString& id, const WebString& name, const W ebURL& avatarURL) 30 WebCredential::WebCredential(const WebString& id, const WebString& name, const W ebURL& iconURL)
31 : m_platformCredential(PlatformCredential::create(id, name, avatarURL)) 31 : m_platformCredential(PlatformCredential::create(id, name, iconURL))
32 { 32 {
33 } 33 }
34 34
35 WebCredential::WebCredential(const WebCredential& other) 35 WebCredential::WebCredential(const WebCredential& other)
36 { 36 {
37 assign(other); 37 assign(other);
38 } 38 }
39 39
40 void WebCredential::assign(const WebCredential& other) 40 void WebCredential::assign(const WebCredential& other)
41 { 41 {
(...skipping 19 matching lines...) Expand all
61 WebString WebCredential::id() const 61 WebString WebCredential::id() const
62 { 62 {
63 return m_platformCredential->id(); 63 return m_platformCredential->id();
64 } 64 }
65 65
66 WebString WebCredential::name() const 66 WebString WebCredential::name() const
67 { 67 {
68 return m_platformCredential->name(); 68 return m_platformCredential->name();
69 } 69 }
70 70
71 WebURL WebCredential::avatarURL() const 71 WebURL WebCredential::iconURL() const
72 { 72 {
73 return m_platformCredential->avatarURL(); 73 return m_platformCredential->iconURL();
74 } 74 }
75 75
76 WebString WebCredential::type() const 76 WebString WebCredential::type() const
77 { 77 {
78 return m_platformCredential->type(); 78 return m_platformCredential->type();
79 } 79 }
80 80
81 bool WebCredential::isPasswordCredential() const 81 bool WebCredential::isPasswordCredential() const
82 { 82 {
83 return m_platformCredential->isPassword(); 83 return m_platformCredential->isPassword();
84 } 84 }
85 85
86 bool WebCredential::isFederatedCredential() const 86 bool WebCredential::isFederatedCredential() const
87 { 87 {
88 return m_platformCredential->isFederated(); 88 return m_platformCredential->isFederated();
89 } 89 }
90 90
91 } // namespace blink 91 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/credentialmanager/PlatformCredential.cpp ('k') | public/platform/WebCredential.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698