Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Unified Diff: chrome/browser/policy/policy_browsertest.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698