Commit 3644f774 authored by hbono@chromium.org's avatar hbono@chromium.org

A quick fix for Bug 52808.

This change just creates a scoped_ptr<Value> variable and sets the return value of base::JSONReader::Read() to it. 

BUG=52808
TEST=make the "Linux Test (valgrind)(1)" bot green.
Review URL: http://codereview.chromium.org/3163027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56831 0039d316-1c4b-4281-b951-d872f2087c98
parent 00b11214
......@@ -586,9 +586,9 @@ TEST_F(HostContentSettingsMapTest, ResourceIdentifierPrefs) {
switches::kEnableResourceContentSettings);
TestingProfile profile;
profile.GetPrefs()->Set(prefs::kContentSettingsPatterns,
*base::JSONReader::Read(
scoped_ptr<Value> value(base::JSONReader::Read(
"{\"[*.]example.com\":{\"per_plugin\":{\"someplugin\":2}}}", false));
profile.GetPrefs()->Set(prefs::kContentSettingsPatterns, *value);
HostContentSettingsMap* host_content_settings_map =
profile.GetHostContentSettingsMap();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment