You could use the CEF REQUIRE_UI_THREAD() macro to ensure this is only called on the main UI thread. (same with the other methods below)