diff options
Diffstat (limited to 'net/base/test_completion_callback_unittest.cc')
-rw-r--r-- | net/base/test_completion_callback_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/base/test_completion_callback_unittest.cc b/net/base/test_completion_callback_unittest.cc index 9967482..1d333f7 100644 --- a/net/base/test_completion_callback_unittest.cc +++ b/net/base/test_completion_callback_unittest.cc @@ -16,7 +16,7 @@ using net::CompletionCallback; const int kMagicResult = 8888; -// ExampleEmployer is a toy version of HostResolver +// ExampleEmployer is a toy version of HostResolver // TODO: restore damage done in extracting example from real code // (e.g. bring back real destructor, bring back comments) class ExampleEmployer { @@ -37,7 +37,7 @@ class ExampleEmployer { }; // Helper class; this is how ExampleEmployer puts work on a different thread -class ExampleEmployer::ExampleWorker +class ExampleEmployer::ExampleWorker : public base::RefCountedThreadSafe<ExampleWorker> { public: ExampleWorker(ExampleEmployer* employer, CompletionCallback* callback) @@ -70,7 +70,7 @@ void ExampleEmployer::ExampleWorker::DoWork() { reply = NULL; } } - + // Does nothing if it got posted. delete reply; } |