Move Minidump Uploading IO operations off the UI thread.
Before this CL we would create a CrashFileManager in MinidumpUploaderImpl on the UI thread. CrashFileManager requires a directory in which to store minidumps, so creating that directory, or ensuring that it exists, requires disk operations. In this CL we move the creation of the CrashFileManager onto the worker thread where the actual minidump uploading happens. Also change the rescheduling logic for minidump uploading slightly, Previously we would check whether there are any minidumps left, at the time when the current job is cancelled, from the UI thread. But that requires a disk operation, so now we instead update whether to reschedule uploads, from the worker thread, for the UI thread to read in a thread-safe way (without disk reads). Note that this change affects the minidump uploading of both WebView and Chrome. BUG=714138 Review-Url: https://codereview.chromium.org/2838383002 Cr-Commit-Position: refs/heads/master@{#468955}
Showing
Please register or sign in to comment