Chromium Code Reviews| Index: chrome/browser/plugin_prefs_unittest.cc |
| diff --git a/chrome/browser/plugin_prefs_unittest.cc b/chrome/browser/plugin_prefs_unittest.cc |
| index f91daf3184f4c616ee472691ad2dba2edb974ce1..ad61c821fa4c262cfd7034ffa5c46e5abe9568f2 100644 |
| --- a/chrome/browser/plugin_prefs_unittest.cc |
| +++ b/chrome/browser/plugin_prefs_unittest.cc |
| @@ -21,6 +21,15 @@ |
| using content::BrowserThread; |
| using content::PluginService; |
| +namespace { |
| + |
| +void CanEnablePluginCallback(bool dummy) { |
|
Bernhard Bauer
2012/08/31 12:54:11
Nit: Aaaand now please don't call the parameter |d
ibraaaa
2012/09/03 08:55:22
Done.
|
| + ASSERT_TRUE(dummy); |
| + MessageLoop::current()->QuitWhenIdle(); |
| +} |
| + |
| +} // namespace |
| + |
| class PluginPrefsTest : public ::testing::Test { |
| public: |
| virtual void SetUp() OVERRIDE { |
| @@ -164,8 +173,9 @@ TEST_F(PluginPrefsTest, DisableGlobally) { |
| ASCIIToUTF16("1.0.0"), |
| ASCIIToUTF16("Foo plug-in")); |
| plugin_list.AddPluginToLoad(plugin); |
| - PluginPrefs::EnablePluginGlobally(false, plugin.path, |
| - MessageLoop::QuitClosure()); |
| + PluginPrefs::EnablePluginGlobally( |
| + false, plugin.path, |
| + base::Bind(&CanEnablePluginCallback)); |
| message_loop.Run(); |