Commit 774b8989 authored by Sean Kau's avatar Sean Kau Committed by Commit Bot

Add the PrinterEventProto to the UMA proto.

The changes mirror those in the logging system.  Additional info in crbug.com/740225

Bug: 725739, 740225
Change-Id: I5426da5065b1de2943ec8130e364769d5853affe
Reviewed-on: https://chromium-review.googlesource.com/563607Reviewed-by: default avatarSteven Holte <holte@chromium.org>
Commit-Queue: Sean Kau <skau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#485117}
parent ad39cd3c
...@@ -16,6 +16,7 @@ proto_library("proto") { ...@@ -16,6 +16,7 @@ proto_library("proto") {
"omnibox_input_type.proto", "omnibox_input_type.proto",
"perf_data.proto", "perf_data.proto",
"perf_stat.proto", "perf_stat.proto",
"printer_event.proto",
"profiler_event.proto", "profiler_event.proto",
"sampled_profile.proto", "sampled_profile.proto",
"system_profile.proto", "system_profile.proto",
......
...@@ -19,11 +19,12 @@ import "omnibox_event.proto"; ...@@ -19,11 +19,12 @@ import "omnibox_event.proto";
import "profiler_event.proto"; import "profiler_event.proto";
import "system_profile.proto"; import "system_profile.proto";
import "translate_event.proto"; import "translate_event.proto";
import "printer_event.proto";
import "user_action_event.proto"; import "user_action_event.proto";
import "perf_data.proto"; import "perf_data.proto";
import "sampled_profile.proto"; import "sampled_profile.proto";
// Next tag: 16 // Next tag: 17
message ChromeUserMetricsExtension { message ChromeUserMetricsExtension {
// The product (i.e. end user application) for a given UMA log. // The product (i.e. end user application) for a given UMA log.
enum Product { enum Product {
...@@ -70,6 +71,7 @@ message ChromeUserMetricsExtension { ...@@ -70,6 +71,7 @@ message ChromeUserMetricsExtension {
repeated HistogramEventProto histogram_event = 6; repeated HistogramEventProto histogram_event = 6;
repeated ProfilerEventProto profiler_event = 7; repeated ProfilerEventProto profiler_event = 7;
repeated TranslateEventProto translate_event = 15; repeated TranslateEventProto translate_event = 15;
repeated PrinterEventProto printer_event = 16;
// This field is no longer used. Use |sampled_profile| instead. // This field is no longer used. Use |sampled_profile| instead.
repeated PerfDataProto perf_data = 8 [deprecated=true]; repeated PerfDataProto perf_data = 8 [deprecated=true];
......
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Stores information about printer configuration attempts.
syntax = "proto2";
option optimize_for = LITE_RUNTIME;
option java_outer_classname = "PrinterEventProtos";
option java_package = "org.chromium.components.metrics";
package metrics;
// Stores information about a printer that a user is setting up/has attempted to
// set up.
// Next tag: 9
message PrinterEventProto {
// The detected printer manufacuter name.
optional string usb_printer_manufacturer = 1;
// The detected printer model name.
optional string usb_printer_model = 2;
// The usb vendor id of the printer.
optional int32 usb_vendor_id = 3;
// The usb model id of the printer.
optional int32 usb_model_id = 4;
// The value reported as a printer's printer-make-and-model attribute.
optional string ipp_make_and_model = 5;
// A true value means that the user provided their own PPD.
optional bool user_ppd = 6;
// The identifier for PPDs from our serving system.
optional string ppd_identifier = 7;
// The action for which the printer was logged.
// Next tag: 5
enum EventType {
UNKNOWN = 0;
// Specified printer successfully installed using the detected
// configuration.
SETUP_AUTOMATIC = 1;
// Specified printer was installed when the user selected the appropriate
// configuration.
SETUP_MANUAL = 2;
// Setup was started but abandoned when user was prompted to choose a
// configuration.
SETUP_ABANDONED = 3;
// A printer, which had been successfully installed, was deleted from the
// user's preferences.
PRINTER_DELETED = 4;
}
// The event for which this was recorded.
optional EventType event_type = 8;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment