| OLD | NEW |
| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 pickle->WriteString16(form->submit_element); | 266 pickle->WriteString16(form->submit_element); |
| 267 pickle->WriteBool(form->preferred); | 267 pickle->WriteBool(form->preferred); |
| 268 pickle->WriteBool(form->blacklisted_by_user); | 268 pickle->WriteBool(form->blacklisted_by_user); |
| 269 pickle->WriteInt64(form->date_created.ToInternalValue()); | 269 pickle->WriteInt64(form->date_created.ToInternalValue()); |
| 270 pickle->WriteInt(form->type); | 270 pickle->WriteInt(form->type); |
| 271 pickle->WriteInt(form->times_used); | 271 pickle->WriteInt(form->times_used); |
| 272 autofill::SerializeFormData(form->form_data, pickle); | 272 autofill::SerializeFormData(form->form_data, pickle); |
| 273 pickle->WriteInt64(form->date_synced.ToInternalValue()); | 273 pickle->WriteInt64(form->date_synced.ToInternalValue()); |
| 274 pickle->WriteString16(form->display_name); | 274 pickle->WriteString16(form->display_name); |
| 275 pickle->WriteString(form->icon_url.spec()); | 275 pickle->WriteString(form->icon_url.spec()); |
| 276 // We serialize unique origins as "", in order to make other systems that | 276 // We serialize opaque origins as "", in order to make other systems that |
| 277 // read from the login database happy. https://crbug.com/591310 | 277 // read from the login database happy. https://crbug.com/591310 |
| 278 pickle->WriteString(form->federation_origin.unique() | 278 pickle->WriteString(form->federation_origin.opaque() |
| 279 ? std::string() | 279 ? std::string() |
| 280 : form->federation_origin.Serialize()); | 280 : form->federation_origin.Serialize()); |
| 281 pickle->WriteBool(form->skip_zero_click); | 281 pickle->WriteBool(form->skip_zero_click); |
| 282 pickle->WriteInt(form->generation_upload_status); | 282 pickle->WriteInt(form->generation_upload_status); |
| 283 } | 283 } |
| 284 } | 284 } |
| 285 | 285 |
| 286 void UMALogDeserializationStatus(bool success) { | 286 void UMALogDeserializationStatus(bool success) { |
| 287 UMA_HISTOGRAM_BOOLEAN("PasswordManager.KWalletDeserializationStatus", | 287 UMA_HISTOGRAM_BOOLEAN("PasswordManager.KWalletDeserializationStatus", |
| 288 success); | 288 success); |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 } | 834 } |
| 835 | 835 |
| 836 return handle; | 836 return handle; |
| 837 } | 837 } |
| 838 | 838 |
| 839 std::string NativeBackendKWallet::GetProfileSpecificFolderName() const { | 839 std::string NativeBackendKWallet::GetProfileSpecificFolderName() const { |
| 840 // Originally, the folder name was always just "Chrome Form Data". | 840 // Originally, the folder name was always just "Chrome Form Data". |
| 841 // Now we use it to distinguish passwords for different profiles. | 841 // Now we use it to distinguish passwords for different profiles. |
| 842 return base::StringPrintf("%s (%d)", kKWalletFolder, profile_id_); | 842 return base::StringPrintf("%s (%d)", kKWalletFolder, profile_id_); |
| 843 } | 843 } |
| OLD | NEW |