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

Unified Diff: chrome/browser/password_manager/native_backend_gnome_x_unittest.cc

Issue 1752383004: CREDENTIAL: Serialize 'PasswordCredential' objects with "" as the federation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/password_manager/native_backend_gnome_x_unittest.cc
diff --git a/chrome/browser/password_manager/native_backend_gnome_x_unittest.cc b/chrome/browser/password_manager/native_backend_gnome_x_unittest.cc
index 7d2ea396c2e12a9076e4e6cfb37b0e0bf25b7797..36c0a363b58702d1c44da725d3642309d606c98a 100644
--- a/chrome/browser/password_manager/native_backend_gnome_x_unittest.cc
+++ b/chrome/browser/password_manager/native_backend_gnome_x_unittest.cc
@@ -491,8 +491,12 @@ class NativeBackendGnomeTest : public testing::Test {
form.date_synced.ToInternalValue()));
CheckStringAttribute(item, "display_name", UTF16ToUTF8(form.display_name));
CheckStringAttribute(item, "avatar_url", form.icon_url.spec());
+ // We serialize unique origins as "", in order to make other systems that
+ // read from the login database happy. https://crbug.com/591310
CheckStringAttribute(item, "federation_url",
- form.federation_origin.Serialize());
+ form.federation_origin.unique()
+ ? ""
+ : form.federation_origin.Serialize());
CheckUint32Attribute(item, "should_skip_zero_click", form.skip_zero_click);
CheckUint32Attribute(item, "generation_upload_status",
form.generation_upload_status);
« no previous file with comments | « chrome/browser/password_manager/native_backend_gnome_x.cc ('k') | chrome/browser/password_manager/native_backend_kwallet_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698