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

Unified Diff: components/autofill/content/renderer/password_form_conversion_utils.h

Issue 2917933002: [PasswordGeneration] Improve change/confirm password field detection. (Closed)
Patch Set: Address more comments. Created 3 years, 6 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/content/renderer/password_form_conversion_utils.h
diff --git a/components/autofill/content/renderer/password_form_conversion_utils.h b/components/autofill/content/renderer/password_form_conversion_utils.h
index 0cebba2f265020f30360f9406c6e742da33beff8..3e4f4029051150d3e8afb3ae078ef55e4c1e24de 100644
--- a/components/autofill/content/renderer/password_form_conversion_utils.h
+++ b/components/autofill/content/renderer/password_form_conversion_utils.h
@@ -9,6 +9,7 @@
#include <memory>
#include <vector>
+#include "base/strings/string_piece.h"
#include "components/autofill/core/common/password_form.h"
#include "components/autofill/core/common/password_form_field_prediction_map.h"
#include "third_party/WebKit/public/platform/WebString.h"
@@ -62,7 +63,7 @@ std::unique_ptr<PasswordForm> CreatePasswordFormFromUnownedInputElements(
// Checks in a case-insensitive way if the autocomplete attribute for the given
// |element| is present and has the specified |value_in_lowercase|.
bool HasAutocompleteAttributeValue(const blink::WebInputElement& element,
- const char* value_in_lowercase);
+ base::StringPiece value_in_lowercase);
// Checks in a case-insensitive way if credit card autocomplete attributes for
// the given |element| are present.

Powered by Google App Engine
This is Rietveld 408576698