Commit 969f26b6 authored by Dan Harrington's avatar Dan Harrington Committed by Commit Bot

feedv2: don't create service if disabled

We were accidentally creating the service to check if it
should be enabled.

Bug: 1092633
Change-Id: I63013b4b11da3f5ce39f78cd0f3895a50e7af316
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2236638
Auto-Submit: Dan H <harringtond@chromium.org>
Commit-Queue: Dan H <harringtond@chromium.org>
Commit-Queue: Ian Wells <iwells@chromium.org>
Reviewed-by: default avatarIan Wells <iwells@chromium.org>
Cr-Commit-Position: refs/heads/master@{#776335}
parent 26f47388
......@@ -41,8 +41,7 @@ DisplayMetrics FeedServiceBridge::GetDisplayMetrics() {
bool FeedServiceBridge::IsEnabled() {
Profile* profile = ProfileManager::GetLastUsedProfile();
return FeedServiceFactory::GetForBrowserContext(profile)->IsEnabled(
*profile->GetPrefs());
return FeedService::IsEnabled(*profile->GetPrefs());
}
} // namespace feed
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