Remove WTF namespace and replace with blink namespace
Minor
Commit Hash:
4396901b34fa021abe1db3fd81e5653d200061eb
Commit Time: 2025-08-26 15:14:06+00:00
Impact Level: Minor
Generated By: webview2-upstream-sentry
Upstream Review:
View Upstream Review 🔗
📋 Summary
This submission mainly replaces the
WTF:: namespace in the code with the blink:: namespace, which is part of Chromium’s ongoing namespace refactoring. Specific changes include: 1) In the content/app_shim_remote_cocoa/render_widget_host_view_cocoa.mm file, changing the comment from WTF::notFound to blink::kNotFound; 2) In the content/public/renderer/render_thread.cc file, updating the TODO comment from WTF::IsMainThread() to blink::IsMainThread(). All these are changes within code comments and do not involve any actual functional logic modifications.
🎯 Impact Analysis
This change has no actual impact on WebView2Mac. Although one of the modified files (render_widget_host_view_cocoa.mm) is located in the content/app_shim_remote_cocoa/ directory, which is the core remote_cocoa component that WebView2Mac depends on, this change is merely a text update in comments and does not alter any API interfaces, function signatures, data structures, or business logic. Specifically: 1) The change from
WTF::notFound to blink::kNotFound is only in the comment description, while the actual code logic uses the UINT32_MAX constant; 2) The modification in render_thread.cc is also just an update to a TODO comment. Therefore, the functionality, performance, and compatibility of WebView2Mac will not be affected.
Impacted Classes:
无相关类受影响(仅注释变更)