| Index: chrome/installer/util/experiment_metrics.cc
|
| diff --git a/chrome/installer/util/experiment_metrics.cc b/chrome/installer/util/experiment_metrics.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..83f1fada3bc1f505e99e9d85a67664c3081bcdfb
|
| --- /dev/null
|
| +++ b/chrome/installer/util/experiment_metrics.cc
|
| @@ -0,0 +1,23 @@
|
| +// Copyright 2017 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.
|
| +
|
| +#include "chrome/installer/util/experiment_metrics.h"
|
| +
|
| +namespace installer {
|
| +
|
| +bool ExperimentMetrics::InInitialState() const {
|
| + return state < kGroupAssigned;
|
| +}
|
| +
|
| +bool ExperimentMetrics::InTerminalState() const {
|
| + return state == kSelectedNoThanks || state == kSelectedOpenChromeAndCrash ||
|
| + state == kSelectedOpenChromeAndNoCrash || state == kSelectedClose ||
|
| + state == kUserLogOff;
|
| +}
|
| +
|
| +void ExperimentMetrics::SetState(State state) {
|
| + this->state = state;
|
| +}
|
| +
|
| +} // namespace installer
|
|
|