Refactor as per @zcbenz comments

Also fix issue where we run the single instance callback *not* on the UI thread,
this apparently results in a hung process.
This commit is contained in:
Samuel Attard 2017-09-16 05:33:12 +10:00 committed by Cheng Zhao
parent ecbeb0d117
commit 0ab83b301d
7 changed files with 22 additions and 16 deletions

View file

@ -55,6 +55,9 @@ class BrowserObserver {
// The browser's accessibility suppport has changed.
virtual void OnAccessibilitySupportChanged() {}
// The app message loop is ready
virtual void OnPreMainMessageLoopRun() {}
#if defined(OS_MACOSX)
// The browser wants to report that an user activity will resume. (macOS only)
virtual void OnWillContinueUserActivity(