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

Unified Diff: components/autofill/core/browser/webdata/autofill_entry.cc

Issue 2646783002: Fixed synchronization autocomplete unrecoverable error. (Closed)
Patch Set: Added const for local variables. Created 3 years, 11 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: components/autofill/core/browser/webdata/autofill_entry.cc
diff --git a/components/autofill/core/browser/webdata/autofill_entry.cc b/components/autofill/core/browser/webdata/autofill_entry.cc
index 58494a7c93e654bfb9e0775ec1e507cf04aa5e81..3a48a50c10e99b049454794487be53631dd6940c 100644
--- a/components/autofill/core/browser/webdata/autofill_entry.cc
+++ b/components/autofill/core/browser/webdata/autofill_entry.cc
@@ -4,6 +4,7 @@
#include "components/autofill/core/browser/webdata/autofill_entry.h"
+#include <string>
#include <tuple>
#include "base/strings/utf_string_conversions.h"
@@ -18,7 +19,8 @@ AutofillKey::AutofillKey(const base::string16& name,
value_(value) {
}
-AutofillKey::AutofillKey(const char* name, const char* value)
+AutofillKey::AutofillKey(const std::string& name,
+ const std::string& value)
: name_(base::UTF8ToUTF16(name)),
value_(base::UTF8ToUTF16(value)) {
}

Powered by Google App Engine
This is Rietveld 408576698