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

Side by Side Diff: chrome/browser/content_settings/content_settings_internal_extension_provider.cc

Issue 385263004: Get rid of some uses of CreateIntegerValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698