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/suggestions_store.h" | 5 #include "components/suggestions/suggestions_store.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 return true; | 92 return true; |
93 } | 93 } |
94 | 94 |
95 void SuggestionsStore::ClearSuggestions() { | 95 void SuggestionsStore::ClearSuggestions() { |
96 pref_service_->ClearPref(prefs::kSuggestionsData); | 96 pref_service_->ClearPref(prefs::kSuggestionsData); |
97 } | 97 } |
98 | 98 |
99 // static | 99 // static |
100 void SuggestionsStore::RegisterProfilePrefs( | 100 void SuggestionsStore::RegisterProfilePrefs( |
101 user_prefs::PrefRegistrySyncable* registry) { | 101 user_prefs::PrefRegistrySyncable* registry) { |
102 registry->RegisterStringPref( | 102 registry->RegisterStringPref(prefs::kSuggestionsData, std::string()); |
103 prefs::kSuggestionsData, std::string(), | |
104 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
105 } | 103 } |
106 | 104 |
107 } // namespace suggestions | 105 } // namespace suggestions |
OLD | NEW |