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

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

Issue 1102733002: Remove most occurences of PrefRegistrySyncable::UNSYNCABLE_PREF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs-add-reg-funcs
Patch Set: Created 5 years, 8 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
« no previous file with comments | « components/suggestions/blacklist_store.cc ('k') | components/sync_driver/sync_prefs.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
OLDNEW
« no previous file with comments | « components/suggestions/blacklist_store.cc ('k') | components/sync_driver/sync_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698