Record all objects created by API in browser.
This commit is contained in:
parent
17a9c2aea5
commit
683087fbc4
10 changed files with 163 additions and 9 deletions
|
@ -4,12 +4,15 @@
|
|||
|
||||
#include "browser/atom_browser_context.h"
|
||||
|
||||
#include "browser/api/atom_api_objects_registry.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
// static
|
||||
AtomBrowserContext* AtomBrowserContext::self_;
|
||||
|
||||
AtomBrowserContext::AtomBrowserContext() {
|
||||
AtomBrowserContext::AtomBrowserContext()
|
||||
: objects_registry_(new api::ObjectsRegistry) {
|
||||
DCHECK(!self_);
|
||||
|
||||
self_ = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue