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

Unified Diff: chrome/browser/host_content_settings_map_unittest.cc

Issue 3163027: A quick fix for Bug 52808.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/host_content_settings_map_unittest.cc
===================================================================
--- chrome/browser/host_content_settings_map_unittest.cc (revision 56801)
+++ chrome/browser/host_content_settings_map_unittest.cc (working copy)
@@ -586,9 +586,9 @@
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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698