| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #include "extensions/browser/api/alarms/alarms_api_constants.h" |
| 6 |
| 7 namespace extensions { |
| 8 namespace alarms_api_constants { |
| 9 |
| 10 // 0.016667 minutes ~= 1s. |
| 11 const double kDevDelayMinimum = 0.016667; |
| 12 |
| 13 const int kReleaseDelayMinimum = 1; |
| 14 |
| 15 const char kWarningMinimumDevDelay[] = |
| 16 "Alarm delay is less than minimum of 1 minutes. In released .crx, alarm " |
| 17 "\"*\" will fire in approximately 1 minutes."; |
| 18 |
| 19 const char kWarningMinimumReleaseDelay[] = |
| 20 "Alarm delay is less than minimum of 1 minutes. Alarm \"*\" will fire in " |
| 21 "approximately 1 minutes."; |
| 22 |
| 23 const char kWarningMinimumDevPeriod[] = |
| 24 "Alarm period is less than minimum of 1 minutes. In released .crx, alarm " |
| 25 "\"*\" will fire approximately every 1 minutes."; |
| 26 |
| 27 const char kWarningMinimumReleasePeriod[] = |
| 28 "Alarm period is less than minimum of 1 minutes. Alarm \"*\" will fire " |
| 29 "approximately every 1 minutes."; |
| 30 |
| 31 static_assert(kReleaseDelayMinimum == 1, "warning message must be updated"); |
| 32 |
| 33 } // namespace alarms_api_constants |
| 34 } // namespace extensions |
| OLD | NEW |