Commit 36c643e3 authored by xiyuan@chromium.org's avatar xiyuan@chromium.org

[Aura] Fix aura_shell_unittest ASAN errors.

Synchronously close launcher widget so that it will not access LauncherModel after Launcher is destructed.

BUG=104672
TEST=Verify aura_shell_unittest should pass ASAN.


Review URL: http://codereview.chromium.org/8589035

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110628 0039d316-1c4b-4281-b951-d872f2087c98
parent c6ab5217
......@@ -42,6 +42,7 @@ Launcher::Launcher(aura::Window* window_container)
}
Launcher::~Launcher() {
widget_->CloseNow();
window_container_->RemoveObserver(this);
for (WindowMap::iterator i = known_windows_.begin();
i != known_windows_.end(); ++i) {
......
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