experiments.h revision 5821806d5e7f356e8fa4b058a389a808ea183019
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_EXPERIMENTS_ 6#define SYNC_UTIL_EXPERIMENTS_ 7 8#include "sync/internal_api/public/base/model_type.h" 9 10namespace syncer { 11 12// A structure to hold the enable status of experimental sync features. 13struct Experiments { 14 Experiments() : sync_tab_favicons(false) {} 15 16 bool Matches(const Experiments& rhs) { 17 return (sync_tab_favicons == rhs.sync_tab_favicons); 18 } 19 20 // Enable syncing of favicons within tab sync (only has an effect if tab sync 21 // is already enabled). This takes effect on the next restart. 22 bool sync_tab_favicons; 23}; 24 25} // namespace syncer 26 27#endif // SYNC_UTIL_EXPERIMENTS_ 28