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

Side by Side Diff: components/metrics/metrics_service.h

Issue 2532823002: Fix gendered string descriptions and comments in //components. (Closed)
Patch Set: Created 4 years 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 | « components/error_page_strings.grdp ('k') | components/policy/resources/policy_templates.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 service that collects information about the user 5 // This file defines a service that collects information about the user
6 // experience in order to help improve future versions of the app. 6 // experience in order to help improve future versions of the app.
7 7
8 #ifndef COMPONENTS_METRICS_METRICS_SERVICE_H_ 8 #ifndef COMPONENTS_METRICS_METRICS_SERVICE_H_
9 #define COMPONENTS_METRICS_METRICS_SERVICE_H_ 9 #define COMPONENTS_METRICS_METRICS_SERVICE_H_
10 10
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // Callback that moves the state to INIT_TASK_DONE. When this is called, the 265 // Callback that moves the state to INIT_TASK_DONE. When this is called, the
266 // state should be INIT_TASK_SCHEDULED. 266 // state should be INIT_TASK_SCHEDULED.
267 void FinishedInitTask(); 267 void FinishedInitTask();
268 268
269 void OnUserAction(const std::string& action); 269 void OnUserAction(const std::string& action);
270 270
271 // Get the amount of uptime since this process started and since the last 271 // Get the amount of uptime since this process started and since the last
272 // call to this function. Also updates the cumulative uptime metric (stored 272 // call to this function. Also updates the cumulative uptime metric (stored
273 // as a pref) for uninstall. Uptimes are measured using TimeTicks, which 273 // as a pref) for uninstall. Uptimes are measured using TimeTicks, which
274 // guarantees that it is monotonic and does not jump if the user changes 274 // guarantees that it is monotonic and does not jump if the user changes
275 // his/her clock. The TimeTicks implementation also makes the clock not 275 // their clock. The TimeTicks implementation also makes the clock not
276 // count time the computer is suspended. 276 // count time the computer is suspended.
277 void GetUptimes(PrefService* pref, 277 void GetUptimes(PrefService* pref,
278 base::TimeDelta* incremental_uptime, 278 base::TimeDelta* incremental_uptime,
279 base::TimeDelta* uptime); 279 base::TimeDelta* uptime);
280 280
281 // Turns recording on or off. 281 // Turns recording on or off.
282 // DisableRecording() also forces a persistent save of logging state (if 282 // DisableRecording() also forces a persistent save of logging state (if
283 // anything has been recorded, or transmitted). 283 // anything has been recorded, or transmitted).
284 void EnableRecording(); 284 void EnableRecording();
285 void DisableRecording(); 285 void DisableRecording();
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 // Weak pointers factory used for saving state. All weak pointers managed by 490 // Weak pointers factory used for saving state. All weak pointers managed by
491 // this factory are invalidated in ScheduleNextStateSave. 491 // this factory are invalidated in ScheduleNextStateSave.
492 base::WeakPtrFactory<MetricsService> state_saver_factory_; 492 base::WeakPtrFactory<MetricsService> state_saver_factory_;
493 493
494 DISALLOW_COPY_AND_ASSIGN(MetricsService); 494 DISALLOW_COPY_AND_ASSIGN(MetricsService);
495 }; 495 };
496 496
497 } // namespace metrics 497 } // namespace metrics
498 498
499 #endif // COMPONENTS_METRICS_METRICS_SERVICE_H_ 499 #endif // COMPONENTS_METRICS_METRICS_SERVICE_H_
OLDNEW
« no previous file with comments | « components/error_page_strings.grdp ('k') | components/policy/resources/policy_templates.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698