summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-11 21:00:02 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-11 21:00:02 +0000
commit199af269595b53d2f4fdfa5d8cfb794729fa9b63 (patch)
tree75b86ad27ac20410e28588235c09fcca4f4fb134 /chrome
parent60ffe9d1ca0a85e4254135d377de1cc47b0987d3 (diff)
downloadchromium_src-199af269595b53d2f4fdfa5d8cfb794729fa9b63.zip
chromium_src-199af269595b53d2f4fdfa5d8cfb794729fa9b63.tar.gz
chromium_src-199af269595b53d2f4fdfa5d8cfb794729fa9b63.tar.bz2
Added RemoveGroupFromView().
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31709 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/cocoa/preferences_window_controller.mm10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/preferences_window_controller.mm b/chrome/browser/cocoa/preferences_window_controller.mm
index 6e5a671..08f2437 100644
--- a/chrome/browser/cocoa/preferences_window_controller.mm
+++ b/chrome/browser/cocoa/preferences_window_controller.mm
@@ -295,6 +295,12 @@ void RemoveViewFromView(NSView* view, NSView* toRemove) {
delta:NSMakeSize(0, -shrinkHeight)];
}
+void RemoveGroupFromView(NSView* view, NSArray* toRemove) {
+ for (NSView* viewToRemove in toRemove) {
+ RemoveViewFromView(view, viewToRemove);
+ }
+}
+
// Helper to tweak the layout of the "Under the Hood" content by autosizing all
// the views and moving things up vertically. Special case the two controls for
// download location as they are horizontal, and should fill the row.
@@ -594,9 +600,7 @@ class PrefObserverBridge : public NotificationObserver,
[self syncStateChanged];
} else {
// Disable controls if sync is disabled.
- RemoveViewFromView(personalStuffView_, syncLabel_);
- RemoveViewFromView(personalStuffView_, syncStatus_);
- RemoveViewFromView(personalStuffView_, syncButton_);
+ RemoveGroupFromView(personalStuffView_, personalStuffGroupSync_);
}
// Make the window as wide as the views.