Android: Call Tab.nativeDestroy only when nativeInit was called
Tab.nativeInit and nativeDestroy come in pair. This CL ensures that the latter is executed only when |mIsInitialized| is true by |nativeInit| beforehand. This helps Tab hide |initializeNative| API from public interface. Also added a few asserts against mNativeTabAndroid to make sure Tab is used in native-initialized state. Bug: 995903 Change-Id: I8178a4cd064f48dddd330cc5a314f946e579dd50 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1818010 Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Reviewed-by:David Trainor <dtrainor@chromium.org> Cr-Commit-Position: refs/heads/master@{#701006}
Showing
Please register or sign in to comment