Commit 3246c21e authored by Rohit Rao's avatar Rohit Rao Committed by Chromium LUCI CQ

[ios] Properly sets ContentSuggestionsViewController.contentSuggestionsEnabled.

This BOOL property was being intialized from the result of
PrefService::FindPreference(), which is a pointer to the pref object
rather than the value of the pref itself. This CL switches to using the
|contentSuggestionsEnabled| local var.

BUG=1142431

Change-Id: If6c13562b0bf46e12952a1a6685c48b9021462e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2497154
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Reviewed-by: default avatarSergio Collazos <sczs@chromium.org>
Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#841841}
parent aa20f9b8
......@@ -298,7 +298,7 @@
changeDiscoverFeedHeaderVisibility:[self.contentSuggestionsVisible
value]];
self.suggestionsViewController.contentSuggestionsEnabled =
prefs->FindPreference(prefs::kArticlesForYouEnabled);
contentSuggestionsEnabled;
self.suggestionsViewController.handler = self;
self.contentSuggestionsMediator.consumer = self.suggestionsViewController;
......
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