mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Record all objects created by API in browser.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user