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

Unified Diff: chrome/browser/autofill/personal_data_manager.cc

Issue 2832049: AutoFill auxiliary profiles should be off on non-Mac platforms. (Closed)
Patch Set: Created 10 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
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/personal_data_manager.cc
diff --git a/chrome/browser/autofill/personal_data_manager.cc b/chrome/browser/autofill/personal_data_manager.cc
index 43c06d17fb7a4d7bb27cb6cd7b2a0616101a2584..9e85f8841b2446f3cb73ff07c5dd93f043a8538e 100644
--- a/chrome/browser/autofill/personal_data_manager.cc
+++ b/chrome/browser/autofill/personal_data_manager.cc
@@ -405,6 +405,12 @@ const std::vector<AutoFillProfile*>& PersonalDataManager::profiles() {
bool auxiliary_profiles_enabled = profile_->GetPrefs()->GetBoolean(
prefs::kAutoFillAuxiliaryProfilesEnabled);
+
+#if !defined(OS_MACOSX)
+ DCHECK(!auxiliary_profiles_enabled)
+ << "Auxiliary profiles supported on Mac only";
+#endif
+
if (auxiliary_profiles_enabled) {
profiles_.clear();
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698