| Index: extensions/browser/api/alarms/alarms_api_constants.cc
|
| diff --git a/extensions/browser/api/alarms/alarms_api_constants.cc b/extensions/browser/api/alarms/alarms_api_constants.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..67e8ba3e1a9f54597c54f833c84c3811350c50e8
|
| --- /dev/null
|
| +++ b/extensions/browser/api/alarms/alarms_api_constants.cc
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "extensions/browser/api/alarms/alarms_api_constants.h"
|
| +
|
| +namespace extensions {
|
| +namespace alarms_api_constants {
|
| +
|
| +// 0.016667 minutes ~= 1s.
|
| +const double kDevDelayMinimum = 0.016667;
|
| +
|
| +const int kReleaseDelayMinimum = 1;
|
| +
|
| +static_assert(
|
| + kReleaseDelayMinimum == 1,
|
| + "warning message in alarms_api.cc:ValidateAlarmCreateInfo must be updated");
|
| +
|
| +} // namespace alarms_api_constants
|
| +} // namespace extensions
|
|
|