void WebContents::ResetManagedWebContents(bool async) {
  if (async) {
    // Browser context should be destroyed only after the WebContents,
    // this is guaranteed in the sync mode by the order of declaration,
    // in the async version we maintain a reference until the WebContents
    // is destroyed.
    // //electron/patches/chromium/content_browser_main_loop.patch
    // is required to get the right quit closure for the main message loop.
    base::ThreadTaskRunnerHandle::Get()->DeleteSoon(
        FROM_HERE, inspectable_web_contents_.release());
  } else {
    inspectable_web_contents_.reset();
  }
}
void WebContents::ResetManagedWebContents(bool async) {
  if (async) {
     
     
     
     
     
     
    base::ThreadTaskRunnerHandle::Get()->DeleteSoon(
        FROM_HERE, inspectable_web_contents_.release());
  } else {
    inspectable_web_contents_.reset();
  }
}