| 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 "chrome/browser/search/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" |
| 11 #include "chrome/common/pref_names.h" | |
| 12 #include "components/pref_registry/pref_registry_syncable.h" | 11 #include "components/pref_registry/pref_registry_syncable.h" |
| 12 #include "components/suggestions/suggestions_pref_names.h" |
| 13 | 13 |
| 14 namespace suggestions { | 14 namespace suggestions { |
| 15 | 15 |
| 16 SuggestionsStore::SuggestionsStore(PrefService* profile_prefs) | 16 SuggestionsStore::SuggestionsStore(PrefService* profile_prefs) |
| 17 : pref_service_(profile_prefs) { | 17 : pref_service_(profile_prefs) { |
| 18 DCHECK(profile_prefs); | 18 DCHECK(profile_prefs); |
| 19 } | 19 } |
| 20 | 20 |
| 21 SuggestionsStore::~SuggestionsStore() {} | 21 SuggestionsStore::~SuggestionsStore() {} |
| 22 | 22 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 // static | 61 // static |
| 62 void SuggestionsStore::RegisterProfilePrefs( | 62 void SuggestionsStore::RegisterProfilePrefs( |
| 63 user_prefs::PrefRegistrySyncable* registry) { | 63 user_prefs::PrefRegistrySyncable* registry) { |
| 64 registry->RegisterStringPref( | 64 registry->RegisterStringPref( |
| 65 prefs::kSuggestionsData, std::string(), | 65 prefs::kSuggestionsData, std::string(), |
| 66 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 66 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace suggestions | 69 } // namespace suggestions |
| OLD | NEW |