summaryrefslogtreecommitdiffstats
path: root/chrome/app/nibs
diff options
context:
space:
mode:
authorpastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-17 12:42:05 +0000
committerpastarmovj@chromium.org <pastarmovj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-17 12:42:05 +0000
commit0e9b60784cae677eab6e207260c2268f4ab55245 (patch)
tree07503a93dc5024137b728ad7ec87bc6b58d8df2f /chrome/app/nibs
parentefb1a423ddec13af4268c7d0fa7f984e9e9c6a8e (diff)
downloadchromium_src-0e9b60784cae677eab6e207260c2268f4ab55245.zip
chromium_src-0e9b60784cae677eab6e207260c2268f4ab55245.tar.gz
chromium_src-0e9b60784cae677eab6e207260c2268f4ab55245.tar.bz2
Implement the DownloadDirectory policy.
This policy allows for locking the user to download files only to the specified location. When the policy is set the UI elements should be inactive and the save dialog should never appear. Changes in the Preferences.xib file only wire the enabled status of the download location and save prompt checkbox elements to a variable that tracks the managed state of the DefaultDownloadDir pref. No UI elements were harmed in this change. BUG=59768 TEST=All old download manager tests shouldn't break. UI should behave correctly when policy is set. Review URL: http://codereview.chromium.org/6525054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75255 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/nibs')
-rw-r--r--chrome/app/nibs/Preferences.xib67
1 files changed, 58 insertions, 9 deletions
diff --git a/chrome/app/nibs/Preferences.xib b/chrome/app/nibs/Preferences.xib
index eff2805..b91a7b4 100644
--- a/chrome/app/nibs/Preferences.xib
+++ b/chrome/app/nibs/Preferences.xib
@@ -2,7 +2,7 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
<data>
<int key="IBDocument.SystemTarget">1050</int>
- <string key="IBDocument.SystemVersion">10F2108</string>
+ <string key="IBDocument.SystemVersion">10F569</string>
<string key="IBDocument.InterfaceBuilderVersion">823</string>
<string key="IBDocument.AppKitVersion">1038.29</string>
<string key="IBDocument.HIToolboxVersion">461.00</string>
@@ -12,11 +12,11 @@
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="481"/>
- <integer value="74"/>
+ <integer value="482"/>
<integer value="692"/>
<integer value="159"/>
- <integer value="482"/>
+ <integer value="481"/>
+ <integer value="74"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -745,6 +745,7 @@
<string>customPagesSource.customHomePages</string>
<string>URL</string>
<string>isPasswordManagerEnabled</string>
+ <string>downloadLocationEnabled</string>
</object>
<string key="NSObjectClassName">CustomHomePageEntry</string>
<bool key="NSEditable">YES</bool>
@@ -4033,6 +4034,54 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
</object>
<int key="connectionID">800</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBBindingConnection" key="connection">
+ <string key="label">enabled: selection.downloadLocationEnabled</string>
+ <reference key="source" ref="602116533"/>
+ <reference key="destination" ref="495015235"/>
+ <object class="NSNibBindingConnector" key="connector">
+ <reference key="NSSource" ref="602116533"/>
+ <reference key="NSDestination" ref="495015235"/>
+ <string key="NSLabel">enabled: selection.downloadLocationEnabled</string>
+ <string key="NSBinding">enabled</string>
+ <string key="NSKeyPath">selection.downloadLocationEnabled</string>
+ <int key="NSNibBindingConnectorVersion">2</int>
+ </object>
+ </object>
+ <int key="connectionID">801</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBBindingConnection" key="connection">
+ <string key="label">enabled: downloadLocationEnabled</string>
+ <reference key="source" ref="484273049"/>
+ <reference key="destination" ref="1001"/>
+ <object class="NSNibBindingConnector" key="connector">
+ <reference key="NSSource" ref="484273049"/>
+ <reference key="NSDestination" ref="1001"/>
+ <string key="NSLabel">enabled: downloadLocationEnabled</string>
+ <string key="NSBinding">enabled</string>
+ <string key="NSKeyPath">downloadLocationEnabled</string>
+ <int key="NSNibBindingConnectorVersion">2</int>
+ </object>
+ </object>
+ <int key="connectionID">803</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBBindingConnection" key="connection">
+ <string key="label">enabled: downloadLocationEnabled</string>
+ <reference key="source" ref="928184762"/>
+ <reference key="destination" ref="1001"/>
+ <object class="NSNibBindingConnector" key="connector">
+ <reference key="NSSource" ref="928184762"/>
+ <reference key="NSDestination" ref="1001"/>
+ <string key="NSLabel">enabled: downloadLocationEnabled</string>
+ <string key="NSBinding">enabled</string>
+ <string key="NSKeyPath">downloadLocationEnabled</string>
+ <int key="NSNibBindingConnectorVersion">2</int>
+ </object>
+ </object>
+ <int key="connectionID">805</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -5696,9 +5745,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<object class="NSMutableArray">
<bool key="EncodedWithXMLCoder">YES</bool>
</object>
- <string>{{329, 497}, {540, 359}}</string>
+ <string>{{901, 797}, {540, 359}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{329, 393}, {540, 463}}</string>
+ <string>{{1078, 324}, {540, 463}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>{{682, 562}, {616, 0}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -5778,7 +5827,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{329, 829}, {540, 27}}</string>
+ <string>{{385, 829}, {540, 27}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -5791,7 +5840,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{389, 162}, {443, 754}}</string>
+ <string>{{384, 314}, {443, 754}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<object class="NSAffineTransform">
@@ -5842,7 +5891,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">800</int>
+ <int key="maxID">805</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">