OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/suggestions/blacklist_store.h" | 5 #include "components/suggestions/blacklist_store.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <set> | 10 #include <set> |
9 #include <string> | 11 #include <string> |
10 | 12 |
11 #include "base/base64.h" | 13 #include "base/base64.h" |
12 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
13 #include "base/prefs/pref_service.h" | 15 #include "base/prefs/pref_service.h" |
14 #include "components/pref_registry/pref_registry_syncable.h" | 16 #include "components/pref_registry/pref_registry_syncable.h" |
15 #include "components/suggestions/suggestions_pref_names.h" | 17 #include "components/suggestions/suggestions_pref_names.h" |
16 | 18 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 255 |
254 pref_service_->SetString(prefs::kSuggestionsBlacklist, base64_blacklist_data); | 256 pref_service_->SetString(prefs::kSuggestionsBlacklist, base64_blacklist_data); |
255 return true; | 257 return true; |
256 } | 258 } |
257 | 259 |
258 void BlacklistStore::ClearBlacklist() { | 260 void BlacklistStore::ClearBlacklist() { |
259 pref_service_->ClearPref(prefs::kSuggestionsBlacklist); | 261 pref_service_->ClearPref(prefs::kSuggestionsBlacklist); |
260 } | 262 } |
261 | 263 |
262 } // namespace suggestions | 264 } // namespace suggestions |
OLD | NEW |