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

Unified Diff: components/exo/shell_surface.cc

Issue 2778913002: exo: Clean up cursor code (Closed)
Patch Set: Rebase Created 3 years, 9 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
« no previous file with comments | « components/exo/pointer.cc ('k') | components/exo/wm_helper_ash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index d7c1e13ec08b3eaf11c84c10c8cffe55ab147eed..c1fa2e241f7a6addcfb00bf66067b71935064209 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -1309,7 +1309,8 @@ void ShellSurface::AttemptToStartDrag(int component) {
// eventually call LockCursor() and prevent the cursor from changing.
aura::client::CursorClient* cursor_client =
aura::client::GetCursorClient(window->GetRootWindow());
- DCHECK(cursor_client);
+ if (!cursor_client)
+ return;
switch (component) {
case HTCAPTION:
« no previous file with comments | « components/exo/pointer.cc ('k') | components/exo/wm_helper_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698