"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "shell/common/gin_helper/trackable_object.cc" between
electron-11.2.3.tar.gz and electron-11.3.0.tar.gz

About: Electron is a framework for creating native cross platform applications with web technologies like JavaScript, HTML, and CSS.

trackable_object.cc  (electron-11.2.3):trackable_object.cc  (electron-11.3.0)
skipping to change at line 38 skipping to change at line 38
DISALLOW_COPY_AND_ASSIGN(IDUserData); DISALLOW_COPY_AND_ASSIGN(IDUserData);
}; };
} // namespace } // namespace
TrackableObjectBase::TrackableObjectBase() : weak_factory_(this) { TrackableObjectBase::TrackableObjectBase() : weak_factory_(this) {
// TODO(zcbenz): Make TrackedObject work in renderer process. // TODO(zcbenz): Make TrackedObject work in renderer process.
DCHECK(gin_helper::Locker::IsBrowserProcess()) DCHECK(gin_helper::Locker::IsBrowserProcess())
<< "This class only works for browser process"; << "This class only works for browser process";
electron::ElectronBrowserMainParts::Get()->RegisterDestructionCallback(
GetDestroyClosure());
} }
TrackableObjectBase::~TrackableObjectBase() = default; TrackableObjectBase::~TrackableObjectBase() = default;
base::OnceClosure TrackableObjectBase::GetDestroyClosure() { base::OnceClosure TrackableObjectBase::GetDestroyClosure() {
return base::BindOnce(&TrackableObjectBase::Destroy, return base::BindOnce(&TrackableObjectBase::Destroy,
weak_factory_.GetWeakPtr()); weak_factory_.GetWeakPtr());
} }
void TrackableObjectBase::Destroy() { void TrackableObjectBase::Destroy() {
 End of changes. 1 change blocks. 
3 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)