Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / components / sync_driver / sync_service_utils.h
blob63ef53beba795d3ca3e0c5ea21bdfed6849de82c
1 // Copyright 2015 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.
5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_UTILS_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_UTILS_H_
8 class PrefService;
10 namespace sync_driver {
12 class SyncService;
14 // Returns whether sync is enabled and tab sync is configured for syncing
15 // without encryption.
16 bool IsTabSyncEnabledAndUnencrypted(SyncService* sync_service,
17 PrefService* pref_service);
19 } // namespace sync_driver
21 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_UTILS_H_