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

Unified Diff: chrome/browser/autofill/autofill_profile.h

Issue 3061001: AutoFill Empty profiles should not be saved from AutoFillDialog Add and Edit sheets on Mac. (Closed)
Patch Set: Move to member function and functor instead of static method. Created 10 years, 5 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: chrome/browser/autofill/autofill_profile.h
diff --git a/chrome/browser/autofill/autofill_profile.h b/chrome/browser/autofill/autofill_profile.h
index ed12b775a3705cf6c2a8697d87e5a8b528612456..17e8528560f8e6e49678f97e3e4a86eaa66ba2a7 100644
--- a/chrome/browser/autofill/autofill_profile.h
+++ b/chrome/browser/autofill/autofill_profile.h
@@ -80,6 +80,10 @@ class AutoFillProfile : public FormGroup {
std::vector<string16>* created_labels,
size_t minimal_fields_shown,
AutoFillFieldType exclude_field);
+
+ // Returns true if there are no values (field types) set.
+ bool IsEmpty() const;
+
// For use in STL containers.
void operator=(const AutoFillProfile&);
« no previous file with comments | « chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm ('k') | chrome/browser/autofill/autofill_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698