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

Side by Side Diff: chrome/browser/metrics/metrics_log.h

Issue 10151017: Remove the hash fields from FieldTrials. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file defines a set of user experience metrics data recorded by 5 // This file defines a set of user experience metrics data recorded by
6 // the MetricsService. This is the unit of data that is sent to the server. 6 // the MetricsService. This is the unit of data that is sent to the server.
7 7
8 #ifndef CHROME_BROWSER_METRICS_METRICS_LOG_H_ 8 #ifndef CHROME_BROWSER_METRICS_METRICS_LOG_H_
9 #define CHROME_BROWSER_METRICS_METRICS_LOG_H_ 9 #define CHROME_BROWSER_METRICS_METRICS_LOG_H_
10 #pragma once 10 #pragma once
11 11
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/metrics/field_trial.h" 16 #include "chrome/common/metrics/experiments_helper.h"
17 #include "chrome/common/metrics/metrics_log_base.h" 17 #include "chrome/common/metrics/metrics_log_base.h"
18 #include "ui/gfx/size.h" 18 #include "ui/gfx/size.h"
19 19
20 struct AutocompleteLog; 20 struct AutocompleteLog;
21 class PrefService; 21 class PrefService;
22 22
23 namespace base { 23 namespace base {
24 class DictionaryValue; 24 class DictionaryValue;
25 } 25 }
26 26
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // Returns the screen size for the primary monitor. 90 // Returns the screen size for the primary monitor.
91 virtual gfx::Size GetScreenSize() const; 91 virtual gfx::Size GetScreenSize() const;
92 92
93 // Returns the number of monitors the user is using. 93 // Returns the number of monitors the user is using.
94 virtual int GetScreenCount() const; 94 virtual int GetScreenCount() const;
95 95
96 // Fills |field_trial_ids| with the list of initialized field trials name and 96 // Fills |field_trial_ids| with the list of initialized field trials name and
97 // group ids. 97 // group ids.
98 virtual void GetFieldTrialIds( 98 virtual void GetFieldTrialIds(
99 std::vector<base::FieldTrial::NameGroupId>* field_trial_ids) const; 99 std::vector<experiments_helper::NameGroupId>* field_trial_ids) const;
Ilya Sherman 2012/04/25 20:26:57 nit: Can we forward-declare this rather than #inlc
SteveT 2012/04/26 19:03:31 Yes! I didn't think we could, since NameGroupId is
100 100
101 private: 101 private:
102 FRIEND_TEST_ALL_PREFIXES(MetricsLogTest, ChromeOSStabilityData); 102 FRIEND_TEST_ALL_PREFIXES(MetricsLogTest, ChromeOSStabilityData);
103 103
104 // Writes application stability metrics (as part of the profile log). 104 // Writes application stability metrics (as part of the profile log).
105 // NOTE: Has the side-effect of clearing those counts. 105 // NOTE: Has the side-effect of clearing those counts.
106 void WriteStabilityElement( 106 void WriteStabilityElement(
107 const std::vector<webkit::WebPluginInfo>& plugin_list, 107 const std::vector<webkit::WebPluginInfo>& plugin_list,
108 PrefService* pref); 108 PrefService* pref);
109 109
(...skipping 27 matching lines...) Expand all
137 137
138 // Writes metrics for the profile identified by key. This writes all 138 // Writes metrics for the profile identified by key. This writes all
139 // key/value pairs in profile_metrics. 139 // key/value pairs in profile_metrics.
140 void WriteProfileMetrics(const std::string& key, 140 void WriteProfileMetrics(const std::string& key,
141 const base::DictionaryValue& profile_metrics); 141 const base::DictionaryValue& profile_metrics);
142 142
143 DISALLOW_COPY_AND_ASSIGN(MetricsLog); 143 DISALLOW_COPY_AND_ASSIGN(MetricsLog);
144 }; 144 };
145 145
146 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_ 146 #endif // CHROME_BROWSER_METRICS_METRICS_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698