DescriptionAdd thread checks to NaClBrowser, and make it leaky.
This makes the following fixes to NaClBrowser:
1. Removes use of WeakPtr to allow in-progress file I/O to be abandoned
when NaClBrowser is torn-down; this never worked as intended, since
the WeakPtrs were used on the I/O thread while NaClBrowser was torn-
down via the Singleton::OnExit handler, on the UI thread.
2. Adds thread checks to NaClBrowser to ensure it is only called from
the browser's I/O thread.
3. Changes the signature of SetDelegate() to express that the caller no
longer owns the supplied NaClBrowserDelegate.
4. Leaks the NaClBrowser and NaClBrowserDelegate, rather than cleaning
them up on exit, since at present they have no cleanup to do.
Review-Url: https://codereview.chromium.org/2630443003
Cr-Commit-Position: refs/heads/master@{#452697}
Committed: https://chromium.googlesource.com/chromium/src/+/72c5d6e04f39f920ea41eb20d56c593fbf83a70c
Patch Set 1 #Patch Set 2 : More cleanups #Patch Set 3 : Move SetDelegate(nullptr) to ClearAndDeleteDelegateForTest() #
Total comments: 3
Patch Set 4 : Rebase #Patch Set 5 : Use static methods for tests to set debug stub port listener #Patch Set 6 : Update NaClGdbDebugStubTest #
Total comments: 1
Messages
Total messages: 45 (31 generated)
|