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

Side by Side Diff: extensions/browser/api/alarms/alarms_api_constants.cc

Issue 2051573003: Perform alarm's period limit check while reading alarm info from StateStore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase @tott Created 4 years, 6 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 unified diff | Download patch
OLDNEW
(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
OLDNEW
« no previous file with comments | « extensions/browser/api/alarms/alarms_api_constants.h ('k') | extensions/browser/api/alarms/alarms_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698