Use smart pointers in a couple places.

This commit is contained in:
Charlie Hess 2016-09-08 16:23:55 -07:00
parent 80f046c8df
commit 32e0e8a151
2 changed files with 3 additions and 3 deletions

View file

@ -156,7 +156,7 @@ void AtomBrowserMainParts::PreMainMessageLoopRun() {
#if !defined(OS_MACOSX)
// The corresponding call in macOS is in AtomApplicationDelegate.
Browser::Get()->WillFinishLaunching();
base::DictionaryValue* empty_info = new base::DictionaryValue();
std::unique_ptr<base::DictionaryValue> empty_info(new base::DictionaryValue);
Browser::Get()->DidFinishLaunching(*empty_info);
#endif
}

View file

@ -32,8 +32,8 @@
atom::NSDictionaryToDictionaryValue(user_notification.userInfo);
atom::Browser::Get()->DidFinishLaunching(*launch_info);
} else {
base::DictionaryValue* launch_info = new base::DictionaryValue();
atom::Browser::Get()->DidFinishLaunching(*launch_info);
std::unique_ptr<base::DictionaryValue> empty_info(new base::DictionaryValue);
atom::Browser::Get()->DidFinishLaunching(*empty_info);
}
}