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 "components/password_manager/core/browser/affiliation_utils.h" | 5 #include "components/password_manager/core/browser/affiliation_utils.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <ostream> | 8 #include <ostream> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 url::ParseStandardURL(canonical_spec_.c_str(), canonical_spec_.size(), | 262 url::ParseStandardURL(canonical_spec_.c_str(), canonical_spec_.size(), |
263 &parsed_); | 263 &parsed_); |
264 } | 264 } |
265 | 265 |
266 | 266 |
267 // AffiliatedFacetsWithUpdateTime --------------------------------------------- | 267 // AffiliatedFacetsWithUpdateTime --------------------------------------------- |
268 | 268 |
269 AffiliatedFacetsWithUpdateTime::AffiliatedFacetsWithUpdateTime() { | 269 AffiliatedFacetsWithUpdateTime::AffiliatedFacetsWithUpdateTime() { |
270 } | 270 } |
271 | 271 |
| 272 AffiliatedFacetsWithUpdateTime::AffiliatedFacetsWithUpdateTime( |
| 273 const AffiliatedFacetsWithUpdateTime& other) = default; |
| 274 |
272 AffiliatedFacetsWithUpdateTime::~AffiliatedFacetsWithUpdateTime() { | 275 AffiliatedFacetsWithUpdateTime::~AffiliatedFacetsWithUpdateTime() { |
273 } | 276 } |
274 | 277 |
275 | 278 |
276 // Helpers -------------------------------------------------------------------- | 279 // Helpers -------------------------------------------------------------------- |
277 | 280 |
278 std::ostream& operator<<(std::ostream& os, const FacetURI& facet_uri) { | 281 std::ostream& operator<<(std::ostream& os, const FacetURI& facet_uri) { |
279 return os << facet_uri.potentially_invalid_spec(); | 282 return os << facet_uri.potentially_invalid_spec(); |
280 } | 283 } |
281 | 284 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 return base::UTF16ToUTF8(url_formatter::FormatUrlForSecurityDisplay( | 338 return base::UTF16ToUTF8(url_formatter::FormatUrlForSecurityDisplay( |
336 password_form.origin, languages)); | 339 password_form.origin, languages)); |
337 } | 340 } |
338 | 341 |
339 std::string GetHumanReadableOriginForAndroidUri(const FacetURI facet_uri) { | 342 std::string GetHumanReadableOriginForAndroidUri(const FacetURI facet_uri) { |
340 DCHECK(facet_uri.IsValidAndroidFacetURI()); | 343 DCHECK(facet_uri.IsValidAndroidFacetURI()); |
341 return facet_uri.scheme() + "://" + facet_uri.android_package_name(); | 344 return facet_uri.scheme() + "://" + facet_uri.android_package_name(); |
342 } | 345 } |
343 | 346 |
344 } // namespace password_manager | 347 } // namespace password_manager |
OLD | NEW |