here I believe 
aura::RootWindow* root = window_->GetNativeWindow()->GetRootWindow();
if (!root)
  return;

would be better