Skip to content

Commit

Permalink
Revert "Ensure the JavaScript world ID is set for Brave Ads"
Browse files Browse the repository at this point in the history
This reverts commit 6650a9f.
  • Loading branch information
mariospr committed Mar 1, 2022
1 parent 30701aa commit 434f13d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions browser/brave_ads/ads_tab_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include "brave/browser/brave_ads/ads_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_isolated_world_ids.h"
#include "components/dom_distiller/content/browser/distiller_javascript_utils.h"
#include "components/dom_distiller/content/browser/distiller_page_web_contents.h"
#include "components/sessions/content/session_tab_helper.h"
Expand Down Expand Up @@ -46,11 +45,6 @@ AdsTabHelper::AdsTabHelper(content::WebContents* web_contents)
OnBrowserSetLastActive(BrowserList::GetInstance()->GetLastActive());
#endif
OnVisibilityChanged(web_contents->GetVisibility());

// Set the JavaScript world ID if not assigned yet.
if (!dom_distiller::DistillerJavaScriptWorldIdIsSet())
dom_distiller::SetDistillerJavaScriptWorldId(
ISOLATED_WORLD_ID_BRAVE_INTERNAL);
}

AdsTabHelper::~AdsTabHelper() {
Expand Down

0 comments on commit 434f13d

Please sign in to comment.