OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "components/content_settings/core/browser/content_settings_pref_provide
r.h" | 5 #include "components/content_settings/core/browser/content_settings_pref_provide
r.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 #include <string> | 10 #include <string> |
9 #include <utility> | 11 #include <utility> |
10 | 12 |
11 #include "base/auto_reset.h" | 13 #include "base/auto_reset.h" |
12 #include "base/bind.h" | 14 #include "base/bind.h" |
13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
14 #include "base/metrics/histogram_macros.h" | 16 #include "base/metrics/histogram_macros.h" |
15 #include "base/prefs/pref_registry.h" | 17 #include "base/prefs/pref_registry.h" |
16 #include "base/prefs/pref_service.h" | 18 #include "base/prefs/pref_service.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 content_type, | 200 content_type, |
199 resource_identifier); | 201 resource_identifier); |
200 } | 202 } |
201 | 203 |
202 void PrefProvider::DiscardObsoletePreferences() { | 204 void PrefProvider::DiscardObsoletePreferences() { |
203 prefs_->ClearPref(kObsoleteMetroSwitchToDesktopExceptions); | 205 prefs_->ClearPref(kObsoleteMetroSwitchToDesktopExceptions); |
204 prefs_->ClearPref(kObsoleteMediaStreamExceptions); | 206 prefs_->ClearPref(kObsoleteMediaStreamExceptions); |
205 } | 207 } |
206 | 208 |
207 } // namespace content_settings | 209 } // namespace content_settings |
OLD | NEW |