Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: ui/aura/mus/window_tree_client.cc

Issue 2710023007: Make WindowTree::SetModal() take the type. (Closed)
Patch Set: Fix compile error. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index 0f7351c738917443789d004d657cba9e57e89b8b..934e74dff85caa4f4539f084b9acaced362d1727 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -479,18 +479,10 @@ bool WindowTreeClient::HandleInternalPropertyChanged(WindowMus* window,
if (key != client::kModalKey)
return false;
- if (window->GetWindow()->GetProperty(client::kModalKey) ==
- ui::MODAL_TYPE_NONE) {
- // TODO: shouldn't early return, but explicitly tell server to turn off
- // modality. http://crbug.com/660073.
- return true;
- }
-
const uint32_t change_id =
ScheduleInFlightChange(base::MakeUnique<InFlightSetModalChange>(window));
sky 2017/03/01 00:13:43 Don't you need to change InFlightSetModalChange to
Hadi 2017/03/06 20:07:05 Done. There was a test for TYPE_MODAL_NONE to TYPE
- // TODO: this is subtly different that explicitly specifying a type.
- // http://crbug.com/660073.
- tree_->SetModal(change_id, window->server_id());
+ tree_->SetModal(change_id, window->server_id(),
+ window->GetWindow()->GetProperty(client::kModalKey));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698