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

Side by Side Diff: components/suggestions/suggestions_store.cc

Issue 410673002: [Suggestions] Moving suggestions code to a new component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix deps Created 6 years, 4 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 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
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
OLDNEW
« no previous file with comments | « components/suggestions/suggestions_store.h ('k') | components/suggestions/suggestions_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698