Fix crash when Chrome switches to full mode from reduced mode.
The problem was that NetworkConnectionNotifier was created by the in-process Network Service. BrowserMainLoop then tries to create it again which isn't supported as it's a singleton. Fix this by adding similar logic to BrowsrMainLoop as in Network Service, which is to only create it if it's not already created. Since BrowserMainLoop may not own the object in all cases, mark the methods that ChromeOS needs to call on NetworkChangeNotifierPosix as static as, similar to how the public methods on NetworkChangeNotifier are static. Bug: 962479 Change-Id: Icb6d0053d445778e6d8b1ee75233f435257ba935 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1613721 Commit-Queue: Xi Han <hanxi@chromium.org> Reviewed-by:Xi Han <hanxi@chromium.org> Cr-Commit-Position: refs/heads/master@{#660629}
Showing
Please register or sign in to comment