Re-do cl/180878946 (e78fcd7c5), which was rolled back in cl/180883687 (a2bbcba5d). The difference between the original change and the new change is that now we check for anything remaining on the onDisposeCallbacks_ queue, which is a weaker requirement and more worthy for a debugger to complain.
Re-do cl/180878946 (e78fcd7c5), which was rolled back in cl/180883687 (a2bbcba5d). The difference between the original change and the new change is that now we check for anything remaining on the onDisposeCallbacks_ queue, which is a weaker requirement and more worthy for a debugger to complain.

RELNOTES[NEW]: Added extra check in Disposable.dispose() that, when Disposable.MonitoringMode is on, ensures that all disposables that have been registered to an object (via object.registerDisposable) have been disposed of and that all callbacks (added via object.addOnDisposeCallback) have been called.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=181687529

google/closure-library,teppeis/closure-library,lucidsoftware/closure-library,lucidsoftware/closure-library,teppeis/closure-library,teppeis/closure-library,lucidsoftware/closure-library,lucidsoftware/closure-library,teppeis/closure-library,google/closure-library,google/closure-library,google/closure-library,google/closure-library