diff options
author | nona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-13 08:21:16 +0000 |
---|---|---|
committer | nona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-13 08:21:16 +0000 |
commit | ebbffaef9d3b317ab161683ebb13b63813e0b9f3 (patch) | |
tree | 7f48a07f87b56a0690ae99a4bbb6fa77eb593f18 /dbus | |
parent | afacb4b03cfcd9a6a255f9872663bba8db6d3399 (diff) | |
download | chromium_src-ebbffaef9d3b317ab161683ebb13b63813e0b9f3.zip chromium_src-ebbffaef9d3b317ab161683ebb13b63813e0b9f3.tar.gz chromium_src-ebbffaef9d3b317ab161683ebb13b63813e0b9f3.tar.bz2 |
Remove unnecessary condition.
ShutdownAndBlock function can be called multiple times safely.
So checking |shutdown_completed_| in OnDisonnected function is not necessary.
BUG=174431
TEST=Checked no crash at sing out.
Review URL: https://chromiumcodereview.appspot.com/12212133
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/bus.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/dbus/bus.cc b/dbus/bus.cc index 6bd404c..1c258d2 100644 --- a/dbus/bus.cc +++ b/dbus/bus.cc @@ -875,11 +875,6 @@ void Bus::OnConnectionDisconnected(DBusConnection* connection) { return; DCHECK(!dbus_connection_get_is_connected(connection)); - if (shutdown_completed_) - return; // Do nothing if the shutdown is already completed. - - // Unexpected disconnection, maybe the peer closes the connection. - DCHECK_EQ(connection, connection_); ShutdownAndBlock(); } |