[iOS] Reset OTR prefs when creating a new OTR Browser state
Before, the OTR prefs were stored in chrome_browser_state_impl, so even after destroying the OTR state (when closing the last tab), a new OTR state would use the same prefs. Thus, the prefs would only reset after a cold start of the app. After, each new OTR browser state creates a new prefs (based off of the existing CBS prefs). The net affect of this is that incognito prefs are reset every time the OTR state is destroyed instead of only every cold start. Bug: 1067412 Change-Id: I0a11f2d83bf7cf1d939bacbafa15b96cb63ee5cc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2135754Reviewed-by:Mark Cogan <marq@chromium.org> Reviewed-by:
Rohit Rao <rohitrao@chromium.org> Commit-Queue: Robbie Gibson <rkgibson@google.com> Cr-Commit-Position: refs/heads/master@{#757003}
Showing
Please register or sign in to comment