Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / athena / util / switches.cc
blobb7adced8772baffc64af2d2fc5b958d1611ff7f4
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "athena/util/switches.h"
7 #include "base/command_line.h"
9 namespace athena {
10 namespace switches {
12 const char kEnableDebugAccelerators[] = "debug-accelerators";
14 bool IsDebugAcceleratorsEnabled() {
15 #if NDEBUG
16 return base::CommandLine::ForCurrentProcess()->HasSwitch(
17 kEnableDebugAccelerators);
18 #else
19 return true;
20 #endif
23 } // namespace switches
24 } // namespace athena