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

Side by Side Diff: chrome/browser/resources/print_preview/metrics.js

Issue 189623004: UMA Histograms for Register Promos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/print_preview.js » ('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 (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 cr.define('print_preview', function() { 5 cr.define('print_preview', function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * Object used to measure usage statistics. 9 * Object used to measure usage statistics.
10 * @constructor 10 * @constructor
(...skipping 28 matching lines...) Expand all
39 // Used when the Google Cloud Print promotion (shown in the destination 39 // Used when the Google Cloud Print promotion (shown in the destination
40 // search widget) is shown to the user. 40 // search widget) is shown to the user.
41 CLOUDPRINT_PROMO_SHOWN: 3, 41 CLOUDPRINT_PROMO_SHOWN: 3,
42 // Used when the user chooses to sign-in to their Google account. 42 // Used when the user chooses to sign-in to their Google account.
43 SIGNIN_TRIGGERED: 4, 43 SIGNIN_TRIGGERED: 4,
44 // Used when a user selects the privet printer in a pair of duplicate 44 // Used when a user selects the privet printer in a pair of duplicate
45 // privet and cloud printers. 45 // privet and cloud printers.
46 PRIVET_DUPLICATE_SELECTED: 5, 46 PRIVET_DUPLICATE_SELECTED: 5,
47 // Used when a user selects the cloud printer in a pair of duplicate 47 // Used when a user selects the cloud printer in a pair of duplicate
48 // privet and cloud printers. 48 // privet and cloud printers.
49 CLOUD_DUPLICATE_SELECTED: 6 49 CLOUD_DUPLICATE_SELECTED: 6,
50 // Used when a user selects a register promo for a cloud print printer.
51 REGISTER_PROMO_SELECTED: 7
Vitaly Buka (NO REVIEWS) 2014/03/07 01:38:35 +REGISTER_PROMO_SHOWN: ?
Noam Samuel 2014/03/07 18:12:53 Done.
50 }; 52 };
51 53
52 /** 54 /**
53 * Enumeration of buckets that a user can enter while using the Google Cloud 55 * Enumeration of buckets that a user can enter while using the Google Cloud
54 * Print promotion. 56 * Print promotion.
55 * @enum {number} 57 * @enum {number}
56 */ 58 */
57 Metrics.GcpPromoBucket = { 59 Metrics.GcpPromoBucket = {
58 // Used when the Google Cloud Print pomotion (shown above the pdf preview 60 // Used when the Google Cloud Print pomotion (shown above the pdf preview
59 // plugin) is shown to the user. 61 // plugin) is shown to the user.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 chrome.send(Metrics.NATIVE_FUNCTION_NAME_, 94 chrome.send(Metrics.NATIVE_FUNCTION_NAME_,
93 [Metrics.BucketGroup.GCP_PROMO, bucket]); 95 [Metrics.BucketGroup.GCP_PROMO, bucket]);
94 } 96 }
95 }; 97 };
96 98
97 // Export 99 // Export
98 return { 100 return {
99 Metrics: Metrics 101 Metrics: Metrics
100 }; 102 };
101 }); 103 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/print_preview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698