Skip to content

Commit

Permalink
Don't depend on buildflag
Browse files Browse the repository at this point in the history
  • Loading branch information
fallaciousreasoning committed Jul 19, 2022
1 parent 3abea4d commit cabd80b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions browser/brave_news/brave_news_tab_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,11 @@ void BraveNewsTabHelper::PrimaryPageChanged(content::Page& page) {
// Invalidate all weak pointers - we're on a new page now.
weak_ptr_factory_.InvalidateWeakPtrs();

#if BUILDFLAG(ENABLE_FEED_V2)
rss_page_feeds_.clear();
feed::FetchRssLinks(GetWebContents().GetLastCommittedURL(), &GetWebContents(),
base::BindOnce(&BraveNewsTabHelper::OnReceivedRssUrls,
weak_ptr_factory_.GetWeakPtr(),
GetWebContents().GetLastCommittedURL()));
#endif

AvailableFeedsChanged();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "brave/components/content_settings/renderer/brave_content_settings_agent_impl.h"
#include "brave/renderer/brave_url_loader_throttle_provider.h"
#include "chrome/renderer/url_loader_throttle_provider_impl.h"
#include "components/feed/content/renderer/rss_link_reader.h"

#define URLLoaderThrottleProviderImpl BraveURLLoaderThrottleProvider

Expand Down

0 comments on commit cabd80b

Please sign in to comment.