Fix crash when using the language picker on iOS
The crash was happening because the wrong constructor of scoped_nsobject, because the template parameter did not exactly match the declaration. The automatic conversion to pointer was used, and the crash happened because the object was not retained. With the new code, the copy constructor is used instead, as was intended. Review URL: https://codereview.chromium.org/793463004 Cr-Commit-Position: refs/heads/master@{#311446}
Showing
Please register or sign in to comment