diff options
author | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-21 18:29:45 +0000 |
---|---|---|
committer | albertb@chromium.org <albertb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-21 18:29:45 +0000 |
commit | 6b77976f7ebe04fd91ccbaf5bfd77c5a9065c518 (patch) | |
tree | 3e9362d3ff479b8d987c1c158fdbca55f9097dde /chrome/browser/sync/glue | |
parent | f286f77eec2281993efe4dd408448903334d55eb (diff) | |
download | chromium_src-6b77976f7ebe04fd91ccbaf5bfd77c5a9065c518.zip chromium_src-6b77976f7ebe04fd91ccbaf5bfd77c5a9065c518.tar.gz chromium_src-6b77976f7ebe04fd91ccbaf5bfd77c5a9065c518.tar.bz2 |
Update the sync node title for classic autofill to be
"autofill_entry|$name|$value".
BUG=40876
TEST=none
Review URL: http://codereview.chromium.org/3005013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/glue')
-rw-r--r-- | chrome/browser/sync/glue/autofill_change_processor.cc | 3 | ||||
-rw-r--r-- | chrome/browser/sync/glue/autofill_model_associator.cc | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/sync/glue/autofill_change_processor.cc b/chrome/browser/sync/glue/autofill_change_processor.cc index dd01c6a..149d266 100644 --- a/chrome/browser/sync/glue/autofill_change_processor.cc +++ b/chrome/browser/sync/glue/autofill_change_processor.cc @@ -208,8 +208,7 @@ void AutofillChangeProcessor::ObserveAutofillEntriesChanged( return; } - sync_node.SetTitle(UTF16ToWide(change->key().name() + - change->key().value())); + sync_node.SetTitle(UTF8ToWide(tag)); WriteAutofillEntry(AutofillEntry(change->key(), timestamps), &sync_node); diff --git a/chrome/browser/sync/glue/autofill_model_associator.cc b/chrome/browser/sync/glue/autofill_model_associator.cc index 6c500756..a373575 100644 --- a/chrome/browser/sync/glue/autofill_model_associator.cc +++ b/chrome/browser/sync/glue/autofill_model_associator.cc @@ -93,7 +93,7 @@ bool AutofillModelAssociator::TraverseAndAssociateChromeAutofillEntries( LOG(ERROR) << "Failed to create autofill sync node."; return false; } - node.SetTitle(UTF16ToWide(ix->key().name() + ix->key().value())); + node.SetTitle(UTF8ToWide(tag)); AutofillChangeProcessor::WriteAutofillEntry(*ix, &node); Associate(&tag, node.GetId()); } |