| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/content_settings/content_settings_internal_extension_pr
ovider.h" | 5 #include "chrome/browser/content_settings/content_settings_internal_extension_pr
ovider.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/content_settings/content_settings_rule.h" | 8 #include "chrome/browser/content_settings/content_settings_rule.h" |
| 9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
| 10 #include "chrome/common/chrome_content_client.h" | 10 #include "chrome/common/chrome_content_client.h" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 if (setting == CONTENT_SETTING_DEFAULT) { | 182 if (setting == CONTENT_SETTING_DEFAULT) { |
| 183 value_map_.DeleteValue(primary_pattern, | 183 value_map_.DeleteValue(primary_pattern, |
| 184 secondary_pattern, | 184 secondary_pattern, |
| 185 CONTENT_SETTINGS_TYPE_PLUGINS, | 185 CONTENT_SETTINGS_TYPE_PLUGINS, |
| 186 resource); | 186 resource); |
| 187 } else { | 187 } else { |
| 188 value_map_.SetValue(primary_pattern, | 188 value_map_.SetValue(primary_pattern, |
| 189 secondary_pattern, | 189 secondary_pattern, |
| 190 CONTENT_SETTINGS_TYPE_PLUGINS, | 190 CONTENT_SETTINGS_TYPE_PLUGINS, |
| 191 resource, | 191 resource, |
| 192 base::Value::CreateIntegerValue(setting)); | 192 new base::FundamentalValue(setting)); |
| 193 } | 193 } |
| 194 } | 194 } |
| 195 NotifyObservers(primary_pattern, | 195 NotifyObservers(primary_pattern, |
| 196 secondary_pattern, | 196 secondary_pattern, |
| 197 CONTENT_SETTINGS_TYPE_PLUGINS, | 197 CONTENT_SETTINGS_TYPE_PLUGINS, |
| 198 resource); | 198 resource); |
| 199 } | 199 } |
| 200 | 200 |
| 201 } // namespace content_settings | 201 } // namespace content_settings |
| OLD | NEW |