summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 19:51:30 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-26 19:51:30 +0000
commitba2194d0c85dd293d6a7b546b0756243cef0523f (patch)
tree292d7fca053e9ef3896f293e6af5ecb505c5ead9 /ipc
parent5cfc2a5f0e1fae171b1a5bdd070cccd869dbe02d (diff)
downloadchromium_src-ba2194d0c85dd293d6a7b546b0756243cef0523f.zip
chromium_src-ba2194d0c85dd293d6a7b546b0756243cef0523f.tar.gz
chromium_src-ba2194d0c85dd293d6a7b546b0756243cef0523f.tar.bz2
ipc: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST.
It's no longer providing value as the MSVC warning is disabled during compilation. Refer to bug for details. BUG=234765 Review URL: https://chromiumcodereview.appspot.com/14261019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196807 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_channel_nacl.cc2
-rw-r--r--ipc/ipc_channel_win.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/ipc/ipc_channel_nacl.cc b/ipc/ipc_channel_nacl.cc
index 479bbe4..5f97c74 100644
--- a/ipc/ipc_channel_nacl.cc
+++ b/ipc/ipc_channel_nacl.cc
@@ -125,7 +125,7 @@ Channel::ChannelImpl::ChannelImpl(const IPC::ChannelHandle& channel_handle,
waiting_connect_(true),
pipe_(-1),
pipe_name_(channel_handle.name),
- weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
+ weak_ptr_factory_(this) {
if (!CreatePipe(channel_handle)) {
// The pipe may have been closed already.
const char *modestr = (mode_ & MODE_SERVER_FLAG) ? "server" : "client";
diff --git a/ipc/ipc_channel_win.cc b/ipc/ipc_channel_win.cc
index 7d57feb..5ae75c84 100644
--- a/ipc/ipc_channel_win.cc
+++ b/ipc/ipc_channel_win.cc
@@ -36,8 +36,8 @@ Channel::ChannelImpl::State::~State() {
Channel::ChannelImpl::ChannelImpl(const IPC::ChannelHandle &channel_handle,
Mode mode, Listener* listener)
: ChannelReader(listener),
- ALLOW_THIS_IN_INITIALIZER_LIST(input_state_(this)),
- ALLOW_THIS_IN_INITIALIZER_LIST(output_state_(this)),
+ input_state_(this),
+ output_state_(this),
pipe_(INVALID_HANDLE_VALUE),
peer_pid_(base::kNullProcessId),
waiting_connect_(mode & MODE_SERVER_FLAG),