Chromium Code Reviews| 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..9bbb9e66f713648b6c74166b7b56edb6d7068b98 |
| --- /dev/null |
| +++ b/components/metrics/net/cellular_logic_helper.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 COMPONENTS_METRICS_NET_CELLULAR_LOGIC_HELPER_H_ |
| +#define COMPONENTS_METRICS_NET_CELLULAR_LOGIC_HELPER_H_ |
| + |
| +#include "base/time/time.h" |
| + |
| +namespace metrics { |
| + |
| +// Returns UMA log upload interval based on OS and ongoing cellular experiment. |
| +base::TimeDelta GetUploadInterval(); |
| + |
| +// 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 18:37:13
Nit: Add an empty line below this.
gayane -on leave until 09-2017
2016/05/13 19:17:02
Done.
|
| +} // namespace metrics |
|
Alexei Svitkine (slow)
2016/05/13 18:37:13
Nit: 2 spaces before //
gayane -on leave until 09-2017
2016/05/13 19:17:02
Done.
|
| + |
| +#endif // COMPONENTS_METRICS_NET_CELLULAR_LOGIC_HELPER_H_ |