OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/installer/util/experiment_metrics.h" |
| 6 |
| 7 namespace installer { |
| 8 |
| 9 bool ExperimentMetrics::InInitialState() const { |
| 10 return state < kGroupAssigned; |
| 11 } |
| 12 |
| 13 bool ExperimentMetrics::InTerminalState() const { |
| 14 return state == kSelectedNoThanks || state == kSelectedOpenChromeAndCrash || |
| 15 state == kSelectedOpenChromeAndNoCrash || state == kSelectedClose || |
| 16 state == kUserLogOff; |
| 17 } |
| 18 |
| 19 void ExperimentMetrics::SetState(State state) { |
| 20 this->state = state; |
| 21 } |
| 22 |
| 23 } // namespace installer |
OLD | NEW |