| 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..b5c7061cf2d9a7e7b10dbde22f57fc51aa6e33b1
|
| --- /dev/null
|
| +++ b/components/metrics/net/cellular_logic_helper.h
|
| @@ -0,0 +1,21 @@
|
| +// 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();
|
| +
|
| +} // namespace metrics
|
| +
|
| +#endif // COMPONENTS_METRICS_NET_CELLULAR_LOGIC_HELPER_H_
|
|
|