Commit cfe98c9e authored by mukai@chromium.org's avatar mukai@chromium.org

Allows invoking debugging print commands for any builds.

Justification: the keyboard shortcuts are already allowed when
--ash-debug-shortcuts is specified.

BUG=None
R=derat@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215848 0039d316-1c4b-4281-b951-d872f2087c98
parent 80cb0676
...@@ -920,14 +920,12 @@ bool AcceleratorController::PerformAction(int action, ...@@ -920,14 +920,12 @@ bool AcceleratorController::PerformAction(int action,
Shell::GetInstance()->power_button_controller()-> Shell::GetInstance()->power_button_controller()->
OnLockButtonEvent(action == LOCK_PRESSED, base::TimeTicks()); OnLockButtonEvent(action == LOCK_PRESSED, base::TimeTicks());
return true; return true;
#if !defined(NDEBUG)
case PRINT_LAYER_HIERARCHY: case PRINT_LAYER_HIERARCHY:
return HandlePrintLayerHierarchy(); return HandlePrintLayerHierarchy();
case PRINT_VIEW_HIERARCHY: case PRINT_VIEW_HIERARCHY:
return HandlePrintViewHierarchy(); return HandlePrintViewHierarchy();
case PRINT_WINDOW_HIERARCHY: case PRINT_WINDOW_HIERARCHY:
return HandlePrintWindowHierarchy(); return HandlePrintWindowHierarchy();
#endif
default: default:
NOTREACHED() << "Unhandled action " << action; NOTREACHED() << "Unhandled action " << action;
} }
......
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