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

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

Issue 3140024: Implement policy for disabling auto fill. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: regenerate XIBs in order to avoid maxID corruption. Created 10 years, 4 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_dialog_controller_mac.h
diff --git a/chrome/browser/autofill/autofill_dialog_controller_mac.h b/chrome/browser/autofill/autofill_dialog_controller_mac.h
index 3b17c24841d4bb0b2289a2d31406a83c4e28f0ef..d3110846a5c6925da94b6801a36351c305c45249 100644
--- a/chrome/browser/autofill/autofill_dialog_controller_mac.h
+++ b/chrome/browser/autofill/autofill_dialog_controller_mac.h
@@ -15,9 +15,11 @@
#include "chrome/browser/autofill/autofill_dialog.h"
#include "chrome/browser/autofill/autofill_profile.h"
#include "chrome/browser/autofill/credit_card.h"
+#include "chrome/browser/pref_member.h"
namespace AutoFillDialogControllerInternal {
class PersonalDataManagerObserver;
+class PrefObserver;
} // AutoFillDialogControllerInternal
@class AutoFillAddressSheetController;
@@ -26,7 +28,7 @@ class PersonalDataManagerObserver;
class Profile;
@class WindowSizeAutosaver;
-// A window controller for managing the autofill options dialog.
+// A window controller for managing the AutoFill options dialog.
// Application modally presents a dialog allowing the user to store
// personal address and credit card information.
@interface AutoFillDialogController : NSWindowController <NSTableViewDelegate> {
@@ -62,9 +64,18 @@ class Profile;
// Working list of input credit cards.
std::vector<CreditCard> creditCards_;
+ // Tracks the AutoFill enabled preference.
+ BooleanPrefMember prefAutoFillEnabled_;
+
// State of checkbox for enabling AutoFill in general.
BOOL autoFillEnabled_;
+ // Whether AutoFill is controlled by configuration management.
+ BOOL autoFillManaged_;
+
+ // Whether AutoFill is managed and disabled.
+ BOOL autoFillManagedAndDisabled_;
+
// State of checkbox for enabling Mac Address Book integration.
BOOL auxiliaryEnabled_;
@@ -90,6 +101,9 @@ class Profile;
// Manages PersonalDataManager loading.
scoped_ptr<AutoFillDialogControllerInternal::PersonalDataManagerObserver>
personalDataManagerObserver_;
+
+ // Watches for changes to the AutoFill enabled preference.
+ scoped_ptr<AutoFillDialogControllerInternal::PrefObserver> prefObserver_;
}
// Property representing state of the AutoFill enabled preference. Checkbox is
@@ -97,6 +111,15 @@ class Profile;
// to this property.
@property (nonatomic) BOOL autoFillEnabled;
+// Property indicating whether AutoFill is under control of configuration
+// management. The enabled state of the AutoFill enabled checkbox is bound to
+// this property.
+@property (nonatomic) BOOL autoFillManaged;
+
+// Property that is true iff AutoFill is managed and disabled. The save button's
+// enabled state is bound to this property.
+@property (nonatomic) BOOL autoFillManagedAndDisabled;
+
// Property representing state of Address Book "me" card usage. Checkbox is
// bound to this in nib.
@property (nonatomic) BOOL auxiliaryEnabled;
« no previous file with comments | « chrome/app/policy/windows/admx/en-US/chrome.adml ('k') | chrome/browser/autofill/autofill_dialog_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698