Mojo: Windows: Enable Channel::Shutdown() on fatal error.

r266056 (crbug.com/366768) fixed the nested deletion bug.

R=yzshen@chromium.org

Review URL: https://codereview.chromium.org/253493003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266227 0039d316-1c4b-4281-b951-d872f2087c98
parent 2a4c873d
......@@ -11,7 +11,6 @@
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/strings/stringprintf.h"
#include "build/build_config.h" // TODO(vtl): Remove this.
#include "mojo/system/message_pipe_endpoint.h"
namespace mojo {
......@@ -290,12 +289,7 @@ void Channel::OnReadMessage(const MessageInTransit::View& message_view) {
void Channel::OnFatalError(FatalError fatal_error) {
LOG(ERROR) << "RawChannel fatal error (type " << fatal_error << ")";
// TODO(vtl): We have some nested-deletion bugs on Windows, so this crashes.
#if defined(OS_WIN)
LOG(ERROR) << "Not shutting down due Windows-only bug";
#else
Shutdown();
#endif
}
bool Channel::ValidateReadMessage(const MessageInTransit::View& message_view) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment