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

Side by Side Diff: chrome/browser/autofill/autofill_metrics.cc

Issue 8169009: Remove FieldTypeSubGroups from the AutofillType class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests compile Created 9 years, 2 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/autofill/autofill_metrics.h" 5 #include "chrome/browser/autofill/autofill_metrics.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "chrome/browser/autofill/autofill_type.h" 10 #include "chrome/browser/autofill/autofill_type.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 default: 113 default:
114 NOTREACHED(); 114 NOTREACHED();
115 group = AMBIGUOUS; 115 group = AMBIGUOUS;
116 } 116 }
117 break; 117 break;
118 118
119 case AutofillType::EMAIL: 119 case AutofillType::EMAIL:
120 group = EMAIL; 120 group = EMAIL;
121 break; 121 break;
122 122
123 case AutofillType::PHONE_HOME: 123 case AutofillType::PHONE:
124 group = PHONE; 124 group = PHONE;
125 break; 125 break;
126 126
127 case AutofillType::CREDIT_CARD: 127 case AutofillType::CREDIT_CARD:
128 switch (field_type) { 128 switch (field_type) {
129 case ::CREDIT_CARD_NAME: 129 case ::CREDIT_CARD_NAME:
130 group = CREDIT_CARD_NAME; 130 group = CREDIT_CARD_NAME;
131 break; 131 break;
132 case ::CREDIT_CARD_NUMBER: 132 case ::CREDIT_CARD_NUMBER:
133 group = CREDIT_CARD_NUMBER; 133 group = CREDIT_CARD_NUMBER;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 351
352 void AutofillMetrics::LogServerExperimentIdForQuery( 352 void AutofillMetrics::LogServerExperimentIdForQuery(
353 const std::string& experiment_id) const { 353 const std::string& experiment_id) const {
354 LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id); 354 LogServerExperimentId("Autofill.ServerExperimentId.Query", experiment_id);
355 } 355 }
356 356
357 void AutofillMetrics::LogServerExperimentIdForUpload( 357 void AutofillMetrics::LogServerExperimentIdForUpload(
358 const std::string& experiment_id) const { 358 const std::string& experiment_id) const {
359 LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id); 359 LogServerExperimentId("Autofill.ServerExperimentId.Upload", experiment_id);
360 } 360 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/autofill/autofill_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698