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

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

Issue 372473004: Retrieve client_id from GoogleUpdateSettings when its missing from Local State. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment + extra test Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_METRICS_CLIENT_INFO_H_
6 #define COMPONENTS_METRICS_CLIENT_INFO_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "base/macros.h"
12
13 namespace metrics {
14
15 // A data object used to pass data from outside the metrics component into the
16 // metrics component.
17 struct ClientInfo {
18 public:
19 ClientInfo();
Alexei Svitkine (slow) 2014/07/15 12:53:25 Nit: Add a destructor decl here and define it out
gab 2014/07/15 20:50:06 Chromium style guide explicitly allows inline dest
grt (UTC plus 2) 2014/07/16 13:52:31 The style guide allows it for trivial dtors becaus
erikwright (departed) 2014/07/16 15:44:22 I infer from the fact that the clang style rules a
gab 2014/07/16 15:51:43 SG, thanks, I'll just do it to close this argument
20
21 // The metrics ID of this client: represented as a GUID string.
22 std::string client_id;
23
24 // The installation date: represented as an epoch time in seconds.
25 int64 installation_date;
26
27 // The date on which metrics reporting was enabled: represented as an epoch
28 // time in seconds.
29 int64 reporting_enabled_date;
30
31 private:
32 DISALLOW_COPY_AND_ASSIGN(ClientInfo);
33 };
34
35 } // namespace metrics
36
37 #endif // COMPONENTS_METRICS_CLIENT_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698