Improved confusing function comment from 2010.
The parameters in the comment no longer existed in the function declaration. The return type had changed, too.
Change-Id: I3118bf0d30ec9fd5df4373db6a9c6197770ba29d
Reviewed-on: https://chromium-review.googlesource.com/c/1478499
Commit-Queue: Caitlin Fischer <caitlinfischer@google.com>
Reviewed-by: Fabio Tirelo <ftirelo@chromium.org>
Reviewed-by: Tommy Martino <tmartino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#633836}
diff --git a/components/autofill/core/browser/autofill_manager.h b/components/autofill/core/browser/autofill_manager.h
index 0a749d1..e9871cd2 100644
--- a/components/autofill/core/browser/autofill_manager.h
+++ b/components/autofill/core/browser/autofill_manager.h
@@ -435,9 +435,10 @@
// |FieldTypeGroup|.
bool FormHasAddressField(const FormData& form) WARN_UNUSED_RESULT;
- // Returns a list of values from the stored profiles that match |type| and the
- // value of |field| and returns the labels of the matching profiles. |labels|
- // is filled with the Profile label.
+ // Returns Suggestions corresponding to both the |autofill_field| type and
+ // stored profiles whose values match the contents of |field|. |form| stores
+ // data about the form with which the user is interacting, e.g. the number and
+ // types of form fields.
std::vector<Suggestion> GetProfileSuggestions(
const FormStructure& form,
const FormFieldData& field,