Commit abd4fcfa authored by Christopher Cameron's avatar Christopher Cameron Committed by Commit Bot

Add null check in -[NativeWidgetMacNSWindow saveRestorableState]

TBR=sdy

Bug: 1013250
Change-Id: I9090602c6af0d01b971b6a9764e21d9c1e50987f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1864319Reviewed-by: default avatarccameron <ccameron@chromium.org>
Commit-Queue: ccameron <ccameron@chromium.org>
Cr-Commit-Position: refs/heads/master@{#707091}
parent e871174c
...@@ -319,6 +319,8 @@ ...@@ -319,6 +319,8 @@
} }
- (void)saveRestorableState { - (void)saveRestorableState {
if (!bridge_)
return;
if (![self _isConsideredOpenForPersistentState]) if (![self _isConsideredOpenForPersistentState])
return; return;
base::scoped_nsobject<NSMutableData> restorableStateData( base::scoped_nsobject<NSMutableData> restorableStateData(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment