OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 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 SYNC_UTIL_SYNC_EXPERIMENTS_ | |
6 #define SYNC_UTIL_SYNC_EXPERIMENTS_ | |
7 #pragma once | |
8 | |
9 #include "sync/syncable/model_type.h" | |
10 | |
11 namespace browser_sync { | |
12 | |
13 // A structure to hold the enable status of experimental sync features. | |
14 struct SyncExperiments { | |
tim (not reviewing)
2012/04/26 22:25:32
Since this is already in browser_sync, I think jus
Nicolas Zea
2012/04/26 22:50:30
Done.
| |
15 SyncExperiments() : sync_tabs(false), sync_tab_favicons(false) {} | |
16 | |
17 bool Matches(const SyncExperiments& rhs) { | |
18 return (sync_tabs == rhs.sync_tabs) && | |
19 (sync_tab_favicons == rhs.sync_tab_favicons); | |
20 } | |
21 | |
22 // Enable the tab sync (SESSIONS) datatype. | |
23 bool sync_tabs; | |
24 | |
25 // Enable syncing of favicons within tab sync (only has an effect if tab sync | |
26 // is already enabled). This takes effect on the next restart. | |
27 bool sync_tab_favicons; | |
28 }; | |
29 | |
30 } | |
31 | |
32 #endif // SYNC_UTIL_SYNC_EXPERIMENTS_ | |
OLD | NEW |