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

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

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 "public/platform/WebCredential.h" 5 #include "public/platform/WebCredential.h"
6 6
7 #include "platform/credentialmanager/PlatformCredential.h" 7 #include "platform/credentialmanager/PlatformCredential.h"
8 #include "public/platform/WebFederatedCredential.h" 8 #include "public/platform/WebFederatedCredential.h"
9 #include "public/platform/WebPasswordCredential.h" 9 #include "public/platform/WebPasswordCredential.h"
10 #include "wtf/PtrUtil.h" 10 #include "wtf/PtrUtil.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 std::unique_ptr<WebCredential> WebCredential::create( 14 std::unique_ptr<WebCredential> WebCredential::create(
15 PlatformCredential* credential) { 15 PlatformCredential* credential) {
16 if (credential->isPassword()) { 16 if (credential->isPassword()) {
17 return makeUnique<WebPasswordCredential>(credential); 17 return WTF::makeUnique<WebPasswordCredential>(credential);
18 } 18 }
19 19
20 if (credential->isFederated()) { 20 if (credential->isFederated()) {
21 return makeUnique<WebFederatedCredential>(credential); 21 return WTF::makeUnique<WebFederatedCredential>(credential);
22 } 22 }
23 23
24 ASSERT_NOT_REACHED(); 24 ASSERT_NOT_REACHED();
25 return nullptr; 25 return nullptr;
26 } 26 }
27 27
28 WebCredential::WebCredential(const WebString& id, 28 WebCredential::WebCredential(const WebString& id,
29 const WebString& name, 29 const WebString& name,
30 const WebURL& iconURL) 30 const WebURL& iconURL)
31 : m_platformCredential(PlatformCredential::create(id, name, iconURL)) {} 31 : m_platformCredential(PlatformCredential::create(id, name, iconURL)) {}
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 bool WebCredential::isPasswordCredential() const { 69 bool WebCredential::isPasswordCredential() const {
70 return m_platformCredential->isPassword(); 70 return m_platformCredential->isPassword();
71 } 71 }
72 72
73 bool WebCredential::isFederatedCredential() const { 73 bool WebCredential::isFederatedCredential() const {
74 return m_platformCredential->isFederated(); 74 return m_platformCredential->isFederated();
75 } 75 }
76 76
77 } // namespace blink 77 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698