1234567891011121314151617181920212223 |
- // Copyright 2019 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef COMPONENTS_OPTIMIZATION_GUIDE_CORE_OPTIMIZATION_GUIDE_PERMISSIONS_UTIL_H_
- #define COMPONENTS_OPTIMIZATION_GUIDE_CORE_OPTIMIZATION_GUIDE_PERMISSIONS_UTIL_H_
- class PrefService;
- namespace optimization_guide {
- // Returns true if the user, as represented by |profile| is permitted to make
- // calls to the remote Optimization Guide Service.
- //
- // Note that this does not include the additional enterprise policy check that
- // gates model downloads.
- bool IsUserPermittedToFetchFromRemoteOptimizationGuide(
- bool is_off_the_record,
- PrefService* pref_service);
- } // namespace optimization_guide
- #endif // COMPONENTS_OPTIMIZATION_GUIDE_CORE_OPTIMIZATION_GUIDE_PERMISSIONS_UTIL_H_
|