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 bool ExperimentMetrics::operator==(const ExperimentMetrics& other) const { |
| 20 return group == other.group && state == other.state && |
| 21 toast_location == other.toast_location && |
| 22 toast_count == other.toast_count && |
| 23 first_toast_offset_days == other.first_toast_offset_days && |
| 24 toast_hour == other.toast_hour && |
| 25 last_used_bucket == other.last_used_bucket && |
| 26 action_delay_bucket == other.action_delay_bucket && |
| 27 session_length_bucket == other.session_length_bucket; |
| 28 } |
| 29 |
| 30 } // namespace installer |
OLD | NEW |