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

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: git cl format 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 static_assert(
16 kReleaseDelayMinimum == 1,
17 "warning message in alarms_api.cc:ValidateAlarmCreateInfo must be updated");
18
19 } // namespace alarms_api_constants
20 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698