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

Unified Diff: chrome/browser/sync/glue/autofill_change_processor2.cc

Issue 5159001: Rest of the autofill work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Autofill code after fixing the lint errors. Created 10 years 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/sync/glue/autofill_change_processor2.cc
diff --git a/chrome/browser/sync/glue/autofill_change_processor2.cc b/chrome/browser/sync/glue/autofill_change_processor2.cc
index eb708091349b27bec9c81c95f756ba7741536265..ed7a177550b938fa8dbfca9abde746dea164fd8e 100644
--- a/chrome/browser/sync/glue/autofill_change_processor2.cc
+++ b/chrome/browser/sync/glue/autofill_change_processor2.cc
@@ -473,12 +473,14 @@ void AutofillChangeProcessor2::ApplySyncAutofillProfileChange(
AutoFillProfile* p = NULL;
string16 label = UTF8ToUTF16(profile.label());
if (!web_database_->GetAutoFillProfileForLabel(label, &p)) {
lipalani 2010/12/09 19:45:25 check to make sure you are not conflicting with so
- NOTREACHED() << "Couldn't retrieve autofill profile: " << label;
+ NOTREACHED() << "Couldn't retrieve autofill profile: "
+ << UTF16ToUTF8(label);
return;
}
AutofillModelAssociator2::OverwriteProfileWithServerData(p, profile);
if (!web_database_->UpdateAutoFillProfile(*p)) {
- NOTREACHED() << "Couldn't update autofill profile: " << label;
+ NOTREACHED() << "Couldn't update autofill profile: " <<
+ UTF16ToUTF8(label);
return;
}
delete p;
@@ -497,11 +499,13 @@ void AutofillChangeProcessor2::ApplySyncAutofillProfileDelete(
bool get_success = web_database_->GetAutoFillProfileForLabel(label, &ptr);
scoped_ptr<AutoFillProfile> p(ptr);
if (!get_success) {
- NOTREACHED() << "Couldn't retrieve autofill profile: " << label;
+ NOTREACHED() << "Couldn't retrieve autofill profile: " << UTF16ToUTF8(
+ label);
return;
}
if (!web_database_->RemoveAutoFillProfile(p->guid())) {
- NOTREACHED() << "Couldn't remove autofill profile: " << label;
+ NOTREACHED() << "Couldn't remove autofill profile: " << UTF16ToUTF8(
+ label);
return;
}
model_associator_->Disassociate(sync_id);

Powered by Google App Engine
This is Rietveld 408576698