| Index: chrome/browser/policy/policy_browsertest.cc
|
| diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
|
| index ff79bcb42760ce046570e893be665489895cb74c..b88826857be80d99afaed0295f815b0c19e8edef 100644
|
| --- a/chrome/browser/policy/policy_browsertest.cc
|
| +++ b/chrome/browser/policy/policy_browsertest.cc
|
| @@ -790,7 +790,8 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, DisabledPlugins) {
|
| const webkit::WebPluginInfo* flash = GetFlashPlugin(plugins);
|
| if (!flash)
|
| return;
|
| - PluginPrefs* plugin_prefs = PluginPrefs::GetForProfile(browser()->profile());
|
| + PluginPrefs* plugin_prefs =
|
| + PluginPrefs::GetForProfile(browser()->profile()).get();
|
| EXPECT_TRUE(plugin_prefs->IsPluginEnabled(*flash));
|
| EXPECT_TRUE(SetPluginEnabled(plugin_prefs, flash, false));
|
| EXPECT_FALSE(plugin_prefs->IsPluginEnabled(*flash));
|
| @@ -820,7 +821,8 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, DisabledPluginsExceptions) {
|
| const webkit::WebPluginInfo* flash = GetFlashPlugin(plugins);
|
| if (!flash)
|
| return;
|
| - PluginPrefs* plugin_prefs = PluginPrefs::GetForProfile(browser()->profile());
|
| + PluginPrefs* plugin_prefs =
|
| + PluginPrefs::GetForProfile(browser()->profile()).get();
|
| EXPECT_TRUE(plugin_prefs->IsPluginEnabled(*flash));
|
|
|
| // Disable all plugins.
|
| @@ -858,7 +860,8 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, EnabledPlugins) {
|
| const webkit::WebPluginInfo* flash = GetFlashPlugin(plugins);
|
| if (!flash)
|
| return;
|
| - PluginPrefs* plugin_prefs = PluginPrefs::GetForProfile(browser()->profile());
|
| + PluginPrefs* plugin_prefs =
|
| + PluginPrefs::GetForProfile(browser()->profile()).get();
|
| EXPECT_TRUE(plugin_prefs->IsPluginEnabled(*flash));
|
|
|
| // The user disables it and then a policy forces it to be enabled.
|
|
|