This was just a general comment based on "NOTE ON THREAD SAFETY" comment at the top of this file. If this code really must only run on the main UI thread, we could use the CEF REQUIRE_UI_THREAD() macro at the top of all public functions to make sure that the code is only called on the main thread.