| 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..03ff2da0818d382afa794293b8b15b4d4f5edde6 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 did_enable) {
|
| + ASSERT_TRUE(did_enable);
|
| + 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();
|
|
|
|
|