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

Side by Side Diff: components/ntp_snippets/pref_util.h

Issue 2279123002: [Sync] Initial implementation of foreign sessions suggestions provider. (Closed)
Patch Set: Updating for comments, again! Created 4 years, 3 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/ntp_snippets/pref_names.cc ('k') | components/ntp_snippets/pref_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_NTP_SNIPPETS_PREF_UTIL_H_
6 #define COMPONENTS_NTP_SNIPPETS_PREF_UTIL_H_
7
8 #include <set>
9 #include <string>
10
11 class PrefService;
12
13 namespace ntp_snippets {
14 namespace prefs {
15
16 // Reads a given preference and then deserializes it into a set of strings.
17 std::set<std::string> ReadDismissedIDsFromPrefs(const PrefService& pref_service,
18 const std::string& pref_name);
19
20 // Serializes a set of strings into a given preference.
21 void StoreDismissedIDsToPrefs(PrefService* pref_service,
22 const std::string& pref_name,
23 const std::set<std::string>& dismissed_ids);
24
25 } // namespace prefs
26 } // namespace ntp_snippets
27
28 #endif // COMPONENTS_NTP_SNIPPETS_PREF_UTIL_H_
OLDNEW
« no previous file with comments | « components/ntp_snippets/pref_names.cc ('k') | components/ntp_snippets/pref_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698