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

Side by Side Diff: chrome/browser/password_manager/native_backend_kwallet_x.cc

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Update new uses post-rebase Created 3 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/password_manager/native_backend_kwallet_x.h" 5 #include "chrome/browser/password_manager/native_backend_kwallet_x.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <iterator> 10 #include <iterator>
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 pickle->WriteString16(form->submit_element); 265 pickle->WriteString16(form->submit_element);
266 pickle->WriteBool(form->preferred); 266 pickle->WriteBool(form->preferred);
267 pickle->WriteBool(form->blacklisted_by_user); 267 pickle->WriteBool(form->blacklisted_by_user);
268 pickle->WriteInt64(form->date_created.ToInternalValue()); 268 pickle->WriteInt64(form->date_created.ToInternalValue());
269 pickle->WriteInt(form->type); 269 pickle->WriteInt(form->type);
270 pickle->WriteInt(form->times_used); 270 pickle->WriteInt(form->times_used);
271 autofill::SerializeFormData(form->form_data, pickle); 271 autofill::SerializeFormData(form->form_data, pickle);
272 pickle->WriteInt64(form->date_synced.ToInternalValue()); 272 pickle->WriteInt64(form->date_synced.ToInternalValue());
273 pickle->WriteString16(form->display_name); 273 pickle->WriteString16(form->display_name);
274 pickle->WriteString(form->icon_url.spec()); 274 pickle->WriteString(form->icon_url.spec());
275 // We serialize unique origins as "", in order to make other systems that 275 // We serialize opaque origins as "", in order to make other systems that
276 // read from the login database happy. https://crbug.com/591310 276 // read from the login database happy. https://crbug.com/591310
277 pickle->WriteString(form->federation_origin.unique() 277 pickle->WriteString(form->federation_origin.opaque()
278 ? std::string() 278 ? std::string()
279 : form->federation_origin.Serialize()); 279 : form->federation_origin.Serialize());
280 pickle->WriteBool(form->skip_zero_click); 280 pickle->WriteBool(form->skip_zero_click);
281 pickle->WriteInt(form->generation_upload_status); 281 pickle->WriteInt(form->generation_upload_status);
282 } 282 }
283 } 283 }
284 284
285 void UMALogDeserializationStatus(bool success) { 285 void UMALogDeserializationStatus(bool success) {
286 UMA_HISTOGRAM_BOOLEAN("PasswordManager.KWalletDeserializationStatus", 286 UMA_HISTOGRAM_BOOLEAN("PasswordManager.KWalletDeserializationStatus",
287 success); 287 success);
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 } 847 }
848 848
849 return handle; 849 return handle;
850 } 850 }
851 851
852 std::string NativeBackendKWallet::GetProfileSpecificFolderName() const { 852 std::string NativeBackendKWallet::GetProfileSpecificFolderName() const {
853 // Originally, the folder name was always just "Chrome Form Data". 853 // Originally, the folder name was always just "Chrome Form Data".
854 // Now we use it to distinguish passwords for different profiles. 854 // Now we use it to distinguish passwords for different profiles.
855 return base::StringPrintf("%s (%d)", kKWalletFolder, profile_id_); 855 return base::StringPrintf("%s (%d)", kKWalletFolder, profile_id_);
856 } 856 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698