* Add top level toggle to enable/disable Speedreader This migrates away an old bad named feature for automatically using speedreader for all sites. The pref was wrongly named `enabled`. This also adds a new preference for actually enabling/disabling the feature. * Fixes Android presubmit --------- Co-authored-by: Serg <serg.zhukovsky@gmail.com>
21 lines
699 B
C++
21 lines
699 B
C++
/* Copyright (c) 2025 The Brave Authors. All rights reserved.
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef BRAVE_COMPONENTS_SPEEDREADER_SPEEDREADER_PREF_MIGRATION_H_
|
|
#define BRAVE_COMPONENTS_SPEEDREADER_SPEEDREADER_PREF_MIGRATION_H_
|
|
|
|
class PrefService;
|
|
|
|
class PrefRegistrySimple;
|
|
|
|
namespace speedreader {
|
|
|
|
void RegisterProfilePrefsForMigration(PrefRegistrySimple* registry);
|
|
void MigrateObsoleteProfilePrefs(PrefService* prefs);
|
|
|
|
} // namespace speedreader
|
|
|
|
#endif // BRAVE_COMPONENTS_SPEEDREADER_SPEEDREADER_PREF_MIGRATION_H_
|