Commit 155c8229 authored by sadrul@chromium.org's avatar sadrul@chromium.org

ash: Fix a crash when going back to the main uber-tray popup from the network popup.

Going back to the main popup from the network popup causes the network popup to
get destroyed. So trying to access its internals afterwards causes a crash.
Return early to avoid this.

BUG=none
TEST=none

Review URL: https://chromiumcodereview.appspot.com/10406020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137681 0039d316-1c4b-4281-b951-d872f2087c98
parent b843d184
......@@ -468,8 +468,10 @@ class NetworkDetailedView : public TrayDetailsView,
// on.
ResetInfoBubble();
if (sender == footer()->content())
if (sender == footer()->content()) {
Shell::GetInstance()->tray()->ShowDefaultView(BUBBLE_USE_EXISTING);
return;
}
if (login_ == user::LOGGED_IN_LOCKED)
return;
......
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