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

Unified Diff: chrome/browser/views/autofill_profiles_view_win.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/views/autofill_profiles_view_win.h
diff --git a/chrome/browser/views/autofill_profiles_view_win.h b/chrome/browser/views/autofill_profiles_view_win.h
index d11da9e4c6c129863881b04806779c794850c795..af8c317d29616d2aec37c6d96395877185c33190 100644
--- a/chrome/browser/views/autofill_profiles_view_win.h
+++ b/chrome/browser/views/autofill_profiles_view_win.h
@@ -15,6 +15,8 @@
#include "chrome/browser/autofill/autofill_dialog.h"
#include "chrome/browser/autofill/autofill_profile.h"
#include "chrome/browser/autofill/personal_data_manager.h"
+#include "chrome/browser/pref_member.h"
+#include "chrome/common/notification_observer.h"
#include "views/controls/combobox/combobox.h"
#include "views/controls/link.h"
#include "views/controls/table/table_view_observer.h"
@@ -56,7 +58,8 @@ class AutoFillProfilesView : public views::View,
public views::LinkController,
public views::FocusChangeListener,
public views::TableViewObserver,
- public PersonalDataManager::Observer {
+ public PersonalDataManager::Observer,
+ public NotificationObserver {
public:
virtual ~AutoFillProfilesView();
@@ -81,7 +84,7 @@ class AutoFillProfilesView : public views::View,
void DeleteClicked();
// Updates state of the buttons.
- void UpdateButtonState();
+ void UpdateWidgetState();
// Updates inferred labels.
void UpdateProfileLabels();
@@ -141,6 +144,11 @@ class AutoFillProfilesView : public views::View,
// PersonalDataManager::Observer methods:
virtual void OnPersonalDataLoaded();
+ // NotificationObserver methods:
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
// Helper structure to keep info on one address or credit card.
// Keeps info on one item in EditableSetViewContents.
// Also keeps info on opened status. Allows to quickly add and delete items,
@@ -453,6 +461,8 @@ class AutoFillProfilesView : public views::View,
AddressComboBoxModel billing_model_;
+ BooleanPrefMember enable_auto_fill_;
+
views::Checkbox* enable_auto_fill_button_;
views::Button* add_address_button_;
views::Button* add_credit_card_button_;
« no previous file with comments | « chrome/browser/policy/configuration_policy_store.h ('k') | chrome/browser/views/autofill_profiles_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698