Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: chrome/installer/util/experiment_metrics.cc

Issue 2889323004: Win 10 Inactive toast experiment metrics and storage modifications. (Closed)
Patch Set: Apply some comments and try bots errors Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/installer/util/experiment_metrics.h ('k') | chrome/installer/util/experiment_storage.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/installer/util/experiment_metrics.h ('k') | chrome/installer/util/experiment_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698