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

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

Issue 1209953002: Rename avatarURL to iconURL in the credential manager in Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/WebPasswordCredential.h" 6 #include "public/platform/WebPasswordCredential.h"
7 7
8 #include "platform/credentialmanager/PlatformPasswordCredential.h" 8 #include "platform/credentialmanager/PlatformPasswordCredential.h"
9 9
10 namespace blink { 10 namespace blink {
11 WebPasswordCredential::WebPasswordCredential(const WebString& id, const WebStrin g& password, const WebString& name, const WebURL& avatarURL) 11 WebPasswordCredential::WebPasswordCredential(const WebString& id, const WebStrin g& password, const WebString& name, const WebURL& iconURL)
12 : WebCredential(PlatformPasswordCredential::create(id, password, name, avata rURL)) 12 : WebCredential(PlatformPasswordCredential::create(id, password, name, iconU RL))
13 { 13 {
14 } 14 }
15 15
16 void WebPasswordCredential::assign(const WebPasswordCredential& other) 16 void WebPasswordCredential::assign(const WebPasswordCredential& other)
17 { 17 {
18 m_platformCredential = other.m_platformCredential; 18 m_platformCredential = other.m_platformCredential;
19 } 19 }
20 20
21 WebString WebPasswordCredential::password() const 21 WebString WebPasswordCredential::password() const
22 { 22 {
23 return static_cast<PlatformPasswordCredential*>(m_platformCredential.get())- >password(); 23 return static_cast<PlatformPasswordCredential*>(m_platformCredential.get())- >password();
24 } 24 }
25 25
26 WebPasswordCredential::WebPasswordCredential(PlatformCredential* credential) 26 WebPasswordCredential::WebPasswordCredential(PlatformCredential* credential)
27 : WebCredential(credential) 27 : WebCredential(credential)
28 { 28 {
29 } 29 }
30 30
31 WebPasswordCredential& WebPasswordCredential::operator=(PlatformCredential* cred ential) 31 WebPasswordCredential& WebPasswordCredential::operator=(PlatformCredential* cred ential)
32 { 32 {
33 m_platformCredential = credential; 33 m_platformCredential = credential;
34 return *this; 34 return *this;
35 } 35 }
36 36
37 } // namespace blink 37 } // namespace blink
38 38
39 39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698