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

Side by Side Diff: components/ntp_snippets/content_suggestions_metrics.cc

Issue 2790183002: Add UMA for the content suggestions settings (Closed)
Patch Set: address comments and rebase Created 3 years, 8 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/ntp_snippets/content_suggestions_metrics.h ('k') | components/ntp_snippets/content_suggestions_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698