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

Unified Diff: extensions/browser/api/alarms/alarms_api_constants.h

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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/alarms/alarms_api_constants.h
diff --git a/extensions/browser/api/alarms/alarms_api_constants.h b/extensions/browser/api/alarms/alarms_api_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..e50022ccd51631e38859e9dca2e2e7224c8525f5
--- /dev/null
+++ b/extensions/browser/api/alarms/alarms_api_constants.h
@@ -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.
+
+#ifndef EXTENSIONS_BROWSER_API_ALARMS_ALARMS_API_CONSTANTS_H_
+#define EXTENSIONS_BROWSER_API_ALARMS_ALARMS_API_CONSTANTS_H_
+
+namespace extensions {
+namespace alarms_api_constants {
+
+// Minimum specifiable alarm period (in minutes) for unpacked extensions.
+extern const double kDevDelayMinimum;
+
+// Minimum specifiable alarm period (in minutes) for packed/crx extensions.
+extern const int kReleaseDelayMinimum;
+
+} // namespace alarms_api_constants
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_API_ALARMS_ALARMS_API_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698