Send notification userInfo to app.ready, on macOS.

Check if the user launched the app from a notification and send the notification args across if so.
This commit is contained in:
Charlie Hess 2016-08-31 17:17:44 -07:00
parent a37544cef4
commit af9e010162
7 changed files with 20 additions and 10 deletions

View file

@ -148,14 +148,14 @@ void Browser::WillFinishLaunching() {
FOR_EACH_OBSERVER(BrowserObserver, observers_, OnWillFinishLaunching());
}
void Browser::DidFinishLaunching() {
void Browser::DidFinishLaunching(const base::DictionaryValue& launch_info) {
// Make sure the userData directory is created.
base::FilePath user_data;
if (PathService::Get(brightray::DIR_USER_DATA, &user_data))
base::CreateDirectoryAndGetError(user_data, nullptr);
is_ready_ = true;
FOR_EACH_OBSERVER(BrowserObserver, observers_, OnFinishLaunching());
FOR_EACH_OBSERVER(BrowserObserver, observers_, OnFinishLaunching(launch_info));
}
void Browser::OnAccessibilitySupportChanged() {