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

Side by Side Diff: components/metrics/proto/system_profile.proto

Issue 464463003: Adding logging of offstore extensions state to user metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
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 // Stores information about the user's brower and system configuration. 5 // Stores information about the user's brower and system configuration.
6 // The system configuration fields are recorded once per client session. 6 // The system configuration fields are recorded once per client session.
7 7
8 syntax = "proto2"; 8 syntax = "proto2";
9 9
10 option optimize_for = LITE_RUNTIME; 10 option optimize_for = LITE_RUNTIME;
11 11
12 package metrics; 12 package metrics;
13 13
14 // Next tag: 19 14 // Next tag: 20
15 message SystemProfileProto { 15 message SystemProfileProto {
16 // The time when the client was compiled/linked, in seconds since the epoch. 16 // The time when the client was compiled/linked, in seconds since the epoch.
17 optional int64 build_timestamp = 1; 17 optional int64 build_timestamp = 1;
18 18
19 // A version number string for the application. 19 // A version number string for the application.
20 // Most commonly this is the browser version number found in a user agent 20 // Most commonly this is the browser version number found in a user agent
21 // string, and is typically a 4-tuple of numbers separated by periods. In 21 // string, and is typically a 4-tuple of numbers separated by periods. In
22 // cases where the user agent version might be ambiguous (example: Linux 64- 22 // cases where the user agent version might be ambiguous (example: Linux 64-
23 // bit build, rather than 32-bit build, or a Windows version used in some 23 // bit build, rather than 32-bit build, or a Windows version used in some
24 // special context, such as ChromeFrame running in IE), then this may include 24 // special context, such as ChromeFrame running in IE), then this may include
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 // Each client first picks a value for client_key derived from its UMA 500 // Each client first picks a value for client_key derived from its UMA
501 // client_id: 501 // client_id:
502 // client_key = client_id % 4096 502 // client_key = client_id % 4096
503 // Then, each installed extension is mapped into a hash bucket according to 503 // Then, each installed extension is mapped into a hash bucket according to
504 // bucket = CityHash64(StringPrintf("%d:%s", 504 // bucket = CityHash64(StringPrintf("%d:%s",
505 // client_key, extension_id)) % 1024 505 // client_key, extension_id)) % 1024
506 // The client reports the set of hash buckets occupied by all installed 506 // The client reports the set of hash buckets occupied by all installed
507 // extensions. If multiple extensions map to the same bucket, that bucket is 507 // extensions. If multiple extensions map to the same bucket, that bucket is
508 // still only reported once. 508 // still only reported once.
509 repeated int32 occupied_extension_bucket = 18; 509 repeated int32 occupied_extension_bucket = 18;
510
511 // The state of loaded extensions for this system. The system can have either
512 // no applicable extensions, extensions only from the webstore and verified by
513 // the webstore, extensions only from the webstore but not verified, or
514 // extensions not from the store. If there is a single off-store extension,
515 // then HAS_OFFSTORE is reported. This should be kept in sync with the
516 // corresponding enum in chrome/browser/metrics/extensions_metrics_provider.cc
517 enum ExtensionsState {
518 NO_EXTENSIONS = 0;
519 NO_OFFSTORE_VERIFIED = 1;
520 NO_OFFSTORE_UNVERIFIED = 2;
521 HAS_OFFSTORE = 3;
522 }
523 optional ExtensionsState offstore_extensions_state = 19;
510 } 524 }
OLDNEW
« chrome/browser/metrics/extensions_metrics_provider.cc ('K') | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698