diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-07 18:43:09 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-07 18:43:09 +0000 |
commit | 93a2c7241cddc33af51cdc3daea03e414f544ec8 (patch) | |
tree | 1864bba1f4c906e7d67ac378814455ec24d8a992 /chrome/browser/cocoa/preferences_window_controller_unittest.mm | |
parent | 2e8f3dd5dbec1c494778713c47a42f6589ecbc86 (diff) | |
download | chromium_src-93a2c7241cddc33af51cdc3daea03e414f544ec8.zip chromium_src-93a2c7241cddc33af51cdc3daea03e414f544ec8.tar.gz chromium_src-93a2c7241cddc33af51cdc3daea03e414f544ec8.tar.bz2 |
Hook up the prefs for the optional home buttons and page/wrench buttons. Move default registration of this pref out of platform code and into shared code to avoid having to do it in at least 3 places. Fix gradient buttons to not draw their borders unless asked.
BUG=13151
TEST=showing/hiding home button and page/wrench buttons should work. Menus for page/wrench should work except for a few straggler items that aren't yet implemented even in the main menubar.
Review URL: http://codereview.chromium.org/155151
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/preferences_window_controller_unittest.mm')
-rw-r--r-- | chrome/browser/cocoa/preferences_window_controller_unittest.mm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/cocoa/preferences_window_controller_unittest.mm b/chrome/browser/cocoa/preferences_window_controller_unittest.mm index 2a8898a..1241100 100644 --- a/chrome/browser/cocoa/preferences_window_controller_unittest.mm +++ b/chrome/browser/cocoa/preferences_window_controller_unittest.mm @@ -32,13 +32,10 @@ namespace { class PrefsControllerTest : public PlatformTest { public: PrefsControllerTest() { - // Since this is a platform-specific preference, it's not registered by - // any of the shared code. We have to register it ourselves. - PrefService* prefs = browser_helper_.profile()->GetPrefs(); - prefs->RegisterBooleanPref(prefs::kShowPageOptionsButtons, false); // The metrics reporting pref is registerd on the local state object in // real builds, but we don't have one of those for unit tests. Register // it on prefs so we'll find it when we go looking. + PrefService* prefs = browser_helper_.profile()->GetPrefs(); prefs->RegisterBooleanPref(prefs::kMetricsReportingEnabled, false); pref_controller_.reset([[PreferencesWindowController alloc] |