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

Unified Diff: chrome/browser/android/preferences/pref_service_bridge.cc

Issue 1948633002: Add histograms for notices about other forms of browsing history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android Fix Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/preferences/pref_service_bridge.cc
diff --git a/chrome/browser/android/preferences/pref_service_bridge.cc b/chrome/browser/android/preferences/pref_service_bridge.cc
index f0303b285251913573c9ced37bcc6681556c1bfb..87055b0371e5d91a27e787d3d0b77a7c4259971b 100644
--- a/chrome/browser/android/preferences/pref_service_bridge.cc
+++ b/chrome/browser/android/preferences/pref_service_bridge.cc
@@ -17,6 +17,7 @@
#include "base/android/jni_weak_ref.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
+#include "base/metrics/histogram_macros.h"
#include "base/scoped_observer.h"
#include "base/strings/string_util.h"
#include "base/values.h"
@@ -645,6 +646,8 @@ static void ShowNoticeAboutOtherFormsOfBrowsingHistory(
ScopedJavaGlobalRef<jobject>* listener,
bool show) {
JNIEnv* env = AttachCurrentThread();
+ UMA_HISTOGRAM_BOOLEAN(
+ "History.ClearBrowsingData.HistoryNoticeShownInFooterWhenUpdated", show);
if (!show)
return;
Java_OtherFormsOfBrowsingHistoryListener_showNoticeAboutOtherFormsOfBrowsingHistory(

Powered by Google App Engine
This is Rietveld 408576698