Index: components/metrics/net/cellular_logic_helper.h |
diff --git a/components/metrics/net/cellular_logic_helper.h b/components/metrics/net/cellular_logic_helper.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c679a0e31a63e9871da596d17e575465ad7a7d31 |
--- /dev/null |
+++ b/components/metrics/net/cellular_logic_helper.h |
@@ -0,0 +1,19 @@ |
+// 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 COMPONENTS_METRICS_NET_CELLULAR_LOGIC_HELPER_H_ |
+#define COMPONENTS_METRICS_NET_CELLULAR_LOGIC_HELPER_H_ |
+ |
+#include "base/time/time.h" |
+ |
+namespace metrics { |
+ |
+base::TimeDelta GetUploadInterval(); |
Alexei Svitkine (slow)
2016/05/13 15:53:59
Nit: Add a comment.
gayane -on leave until 09-2017
2016/05/13 18:33:15
Done.
|
+ |
+// Returns true if current connection type is cellular and user is assigned to |
+// experimental group for enabled cellular uploads. |
+bool IsCellularLogicEnabled(); |
+}; |
Alexei Svitkine (slow)
2016/05/13 15:53:59
Nit: No ; and add // namespace metrics
gayane -on leave until 09-2017
2016/05/13 18:33:15
Done.
|
+ |
+#endif // COMPONENTS_METRICS_NET_CELLULAR_LOGIC_HELPER_H_ |