* Move BraveYouTubeScriptInjectorNativeHelper to main app layer so it can reference BraveActivity
* Save boolean flag in activity bundle
* Add small delay to let the layout pass to complete
This fix ensures that YouTube videos on Android can properly handle the transition from fullscreen playback to Picture-in-Picture mode without interference from automatic screen orientation changes.
Refactors and improves the Picture-in-Picture (PiP) functionality for YouTube videos in Brave Android browser.
The changes focus on better integration, cleaner architecture, improved reliability, and proper handling of Android system settings.
This PR does IWYU for the following files:
- base/strings/utf_string_conversions.h
- base/i18n/number_formatting.h
This is a mechanical change, and for more details, check the issue
description.
Resolves https://github.com/brave/brave-browser/issues/47060
* Make `IsBackgroundVideoPlaybackEnabled` method more readable
* Rename background_video_player_tab_helper into youtube_script_injector_tab_helper
* Apply code formatting