Commit 5510a760 authored by Jeremy Elson's avatar Jeremy Elson Committed by Commit Bot

Small cleanup: use the IsOptimizationHintsEnabled helper function consistently...

Small cleanup: use the IsOptimizationHintsEnabled helper function consistently rather than accessing the kOptimizationHints feature directly.

Change-Id: Ie61c5ba532e71c9524369f5d1bb056e8303ac02f
Reviewed-on: https://chromium-review.googlesource.com/1119229Reviewed-by: default avatarDoug Arnett <dougarnett@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Jeremy Elson <jelson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#571517}
parent 6c628af5
......@@ -101,7 +101,7 @@
#include "components/prefs/json_pref_store.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#include "components/previews/core/previews_features.h"
#include "components/previews/core/previews_experiments.h"
#include "components/rappor/public/rappor_utils.h"
#include "components/rappor/rappor_service_impl.h"
#include "components/sessions/core/session_id_generator.h"
......@@ -1299,7 +1299,7 @@ void BrowserProcessImpl::CreateOptimizationGuideService() {
DCHECK(!optimization_guide_service_);
created_optimization_guide_service_ = true;
if (!base::FeatureList::IsEnabled(previews::features::kOptimizationHints))
if (!previews::params::IsOptimizationHintsEnabled())
return;
optimization_guide_service_ =
......
......@@ -17,7 +17,7 @@
#include "components/optimization_guide/optimization_guide_constants.h"
#include "components/optimization_guide/optimization_guide_service.h"
#include "components/prefs/pref_service.h"
#include "components/previews/core/previews_features.h"
#include "components/previews/core/previews_experiments.h"
using component_updater::ComponentUpdateService;
......@@ -133,7 +133,7 @@ OptimizationHintsComponentInstallerPolicy::GetMimeTypes() const {
void RegisterOptimizationHintsComponent(ComponentUpdateService* cus,
PrefService* profile_prefs) {
if (!base::FeatureList::IsEnabled(previews::features::kOptimizationHints)) {
if (!previews::params::IsOptimizationHintsEnabled()) {
return;
}
if (!profile_prefs || !profile_prefs->GetBoolean(prefs::kDataSaverEnabled)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment