OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/ntp_snippets/content_suggestions_metrics.h" | 5 #include "components/ntp_snippets/content_suggestions_metrics.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <string> | 8 #include <string> |
9 #include <type_traits> | 9 #include <type_traits> |
10 | 10 |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 LogCategoryHistogramPosition(kHistogramMoreButtonClicked, category, position, | 354 LogCategoryHistogramPosition(kHistogramMoreButtonClicked, category, position, |
355 kMaxSuggestionsPerCategory + 1); | 355 kMaxSuggestionsPerCategory + 1); |
356 } | 356 } |
357 | 357 |
358 void OnCategoryDismissed(Category category) { | 358 void OnCategoryDismissed(Category category) { |
359 UMA_HISTOGRAM_ENUMERATION(kHistogramCategoryDismissed, | 359 UMA_HISTOGRAM_ENUMERATION(kHistogramCategoryDismissed, |
360 GetHistogramCategory(category), | 360 GetHistogramCategory(category), |
361 HistogramCategories::COUNT); | 361 HistogramCategories::COUNT); |
362 } | 362 } |
363 | 363 |
| 364 void RecordRemoteSuggestionsProviderState(bool enabled) { |
| 365 UMA_HISTOGRAM_BOOLEAN( |
| 366 "NewTabPage.ContentSuggestions.Preferences.RemoteSuggestions", enabled); |
| 367 } |
| 368 |
364 } // namespace metrics | 369 } // namespace metrics |
365 } // namespace ntp_snippets | 370 } // namespace ntp_snippets |
OLD | NEW |