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

Side by Side Diff: ios/web/web_state/credential.cc

Issue 1723583004: CREDENTIAL: Convert federations from URLs to origins throughout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iOS2 Created 4 years, 10 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 "ios/web/public/web_state/credential.h" 5 #include "ios/web/public/web_state/credential.h"
6 6
7 namespace web { 7 namespace web {
8 8
9 Credential::Credential() : type(CREDENTIAL_TYPE_EMPTY) { 9 Credential::Credential() : type(CREDENTIAL_TYPE_EMPTY) {
10 } 10 }
11 11
12 Credential::~Credential() = default; 12 Credential::~Credential() = default;
13 13
14 bool CredentialsEqual(const web::Credential& credential1, 14 bool CredentialsEqual(const web::Credential& credential1,
15 const web::Credential& credential2) { 15 const web::Credential& credential2) {
16 return credential1.type == credential2.type && 16 return credential1.type == credential2.type &&
17 credential1.id == credential2.id && 17 credential1.id == credential2.id &&
18 credential1.name == credential2.name && 18 credential1.name == credential2.name &&
19 credential1.avatar_url == credential2.avatar_url && 19 credential1.avatar_url == credential2.avatar_url &&
20 credential1.password == credential2.password && 20 credential1.password == credential2.password &&
21 credential1.federation_url == credential2.federation_url; 21 credential1.federation_origin.Serialize() ==
22 credential2.federation_origin.Serialize();
22 } 23 }
23 24
24 } // namespace web 25 } // namespace web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698