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

Issue 3140024: Implement policy for disabling auto fill. (Closed)

Created:
10 years, 4 months ago by Mattias Nissler (ping if slow)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, finnur+watch_chromium.org, ben+cc_chromium.org, John Grabowski, pam+watch_chromium.org, Paweł Hajdan Jr., dhollowa
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Implement policy for disabling auto fill. This introduces a new policy setting named AutoFillEnabled that administrators can use to switch off the auto fill feature. The UI adjustments disable the autofill button and dialog in the preferences dialog appropriate. Preferences.xib change: Bind enabled state of the auto fill button to autoFillSettingsButtonEnabled @property. AutoFillDialog.xib change: Bind enabled state of the auto fill enabled checkbox and save button to the autoFillEnabledAvailable and saveEnabled @properties, respectively. BUG=49611 TEST=autofill_dialog_controller_mac_unittest.mm, manual testing Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57302

Patch Set 1 #

Total comments: 27

Patch Set 2 : Address feedback. #

Total comments: 6

Patch Set 3 : rework mac KVO properties #

Total comments: 10

Patch Set 4 : address comments. #

Patch Set 5 : Only set managed preference if AutoFill policy is disabled, update template description texts. #

Total comments: 1

Patch Set 6 : update template wording. #

Total comments: 1

Patch Set 7 : regenerate XIBs in order to avoid maxID corruption. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1893 lines, -155 lines) Patch
M chrome/app/nibs/AutoFillDialog.xib View 1 2 3 4 5 6 9 chunks +165 lines, -3 lines 0 comments Download
M chrome/app/nibs/Preferences.xib View 1 2 3 4 5 6 74 chunks +1434 lines, -107 lines 0 comments Download
M chrome/app/policy/mac/app-Manifest.plist View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/app/policy/windows/adm/en-US/chrome.adm View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/app/policy/windows/admx/chrome.admx View 1 2 3 4 5 6 2 chunks +11 lines, -1 line 0 comments Download
M chrome/app/policy/windows/admx/en-US/chrome.adml View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_dialog_controller_mac.h View 1 2 5 chunks +24 lines, -1 line 0 comments Download
M chrome/browser/autofill/autofill_dialog_controller_mac.mm View 1 2 3 7 chunks +57 lines, -7 lines 0 comments Download
M chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm View 1 2 3 chunks +65 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_dialog_gtk.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.h View 1 2 3 4 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.mm View 1 2 3 4 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/gtk/options/content_page_gtk.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/gtk/options/content_page_gtk.cc View 3 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/managed_prefs_banner_base.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_pref_store.cc View 1 2 3 4 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_provider.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/policy/configuration_policy_store.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/views/autofill_profiles_view_win.h View 1 5 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/views/autofill_profiles_view_win.cc View 1 2 3 15 chunks +25 lines, -25 lines 0 comments Download
M chrome/browser/views/options/content_page_view.h View 1 chunk +1 line, -0 lines 0 comments Download
chrome/browser/views/options/content_page_view.cc View 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/common/policy_constants.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/policy_constants.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Mattias Nissler (ping if slow)
Hi folks, please review! I thought finnur could do the general review and dhollowa and ...
10 years, 4 months ago (2010-08-23 15:50:38 UTC) #1
dhollowa
http://codereview.chromium.org/3140024/diff/1/4 File chrome/app/policy/mac/app-Manifest.plist (right): http://codereview.chromium.org/3140024/diff/1/4#newcode182 chrome/app/policy/mac/app-Manifest.plist:182: <string>This policy controls the auto fill feature. If you ...
10 years, 4 months ago (2010-08-23 16:26:07 UTC) #2
Mattias Nissler (ping if slow)
Thanks for the feedback! I've just uploaded an updated version with fixes, please take a ...
10 years, 4 months ago (2010-08-23 20:06:44 UTC) #3
dhollowa
http://codereview.chromium.org/3140024/diff/1/9 File chrome/browser/autofill/autofill_dialog_controller_mac.mm (right): http://codereview.chromium.org/3140024/diff/1/9#newcode790 chrome/browser/autofill/autofill_dialog_controller_mac.mm:790: if (prefName == prefs::kAutoFillEnabled) { On 2010/08/23 20:06:45, mnissler ...
10 years, 4 months ago (2010-08-23 22:29:41 UTC) #4
Mattias Nissler (ping if slow)
David, here's an updated version. http://codereview.chromium.org/3140024/diff/12001/13007 File chrome/browser/autofill/autofill_dialog_controller_mac.h (right): http://codereview.chromium.org/3140024/diff/12001/13007#newcode88 chrome/browser/autofill/autofill_dialog_controller_mac.h:88: BOOL saveEnabled_; On 2010/08/23 ...
10 years, 4 months ago (2010-08-24 09:34:37 UTC) #5
Finnur
Didn't look at the Mac parts, but overall looks good. Three comments. http://codereview.chromium.org/3140024/diff/22001/23004 File chrome/app/policy/windows/adm/en-US/chrome.adm ...
10 years, 4 months ago (2010-08-24 10:27:02 UTC) #6
Mattias Nissler (ping if slow)
Finnur, here's an updated version with your comments addressed. http://codereview.chromium.org/3140024/diff/22001/23004 File chrome/app/policy/windows/adm/en-US/chrome.adm (right): http://codereview.chromium.org/3140024/diff/22001/23004#newcode273 chrome/app/policy/windows/adm/en-US/chrome.adm:273: ...
10 years, 4 months ago (2010-08-24 12:34:58 UTC) #7
Finnur
LG with those changes, one more nit. http://codereview.chromium.org/3140024/diff/22001/23004 File chrome/app/policy/windows/adm/en-US/chrome.adm (right): http://codereview.chromium.org/3140024/diff/22001/23004#newcode273 chrome/app/policy/windows/adm/en-US/chrome.adm:273: If you ...
10 years, 4 months ago (2010-08-24 13:13:03 UTC) #8
Mattias Nissler (ping if slow)
On 2010/08/24 13:13:03, Finnur wrote: > LG with those changes, one more nit. > > ...
10 years, 4 months ago (2010-08-24 13:47:25 UTC) #9
Finnur
Don't get me wrong. I'm not advocating we change behavior here, I'm just saying we ...
10 years, 4 months ago (2010-08-24 15:17:33 UTC) #10
Mattias Nissler (ping if slow)
On 2010/08/24 15:17:33, Finnur wrote: > Don't get me wrong. I'm not advocating we change ...
10 years, 4 months ago (2010-08-24 15:27:48 UTC) #11
Finnur
OK, that makes sense.
10 years, 4 months ago (2010-08-24 15:38:30 UTC) #12
Mattias Nissler (ping if slow)
Finnur, here is an update that only sets the preference if the admin actually set ...
10 years, 4 months ago (2010-08-24 16:09:00 UTC) #13
Finnur
LG, one nit (feel free to ignore). http://codereview.chromium.org/3140024/diff/46001/5005 File chrome/app/policy/windows/adm/en-US/chrome.adm (right): http://codereview.chromium.org/3140024/diff/46001/5005#newcode285 chrome/app/policy/windows/adm/en-US/chrome.adm:285: If you ...
10 years, 4 months ago (2010-08-24 16:36:08 UTC) #14
Mattias Nissler (ping if slow)
On 2010/08/24 16:36:08, Finnur wrote: > LG, one nit (feel free to ignore). > > ...
10 years, 4 months ago (2010-08-24 17:32:01 UTC) #15
dhollowa
LGTM. Thanks!
10 years, 4 months ago (2010-08-24 17:58:54 UTC) #16
Mattias Nissler (ping if slow)
Uploaded the final version that I'll commit tomorrow (European time) if nobody objects.
10 years, 4 months ago (2010-08-24 19:34:19 UTC) #17
James Hawkins
http://codereview.chromium.org/3140024/diff/37002/48021 File chrome/browser/views/autofill_profiles_view_win.cc (left): http://codereview.chromium.org/3140024/diff/37002/48021#oldcode336 chrome/browser/views/autofill_profiles_view_win.cc:336: DCHECK(observer_); Why did you take out all of these ...
10 years, 4 months ago (2010-08-24 21:13:34 UTC) #18
Mattias Nissler (ping if slow)
On 2010/08/24 21:13:34, James Hawkins wrote: > http://codereview.chromium.org/3140024/diff/37002/48021 > File chrome/browser/views/autofill_profiles_view_win.cc (left): > > http://codereview.chromium.org/3140024/diff/37002/48021#oldcode336 ...
10 years, 4 months ago (2010-08-24 21:29:53 UTC) #19
James Hawkins
10 years, 4 months ago (2010-08-24 21:31:03 UTC) #20
LGTM then.

Powered by Google App Engine
This is Rietveld 408576698