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

Unified Diff: chrome/browser/ui/webui/settings/chrome_cleanup_handler.cc

Issue 2973873002: Primary histograms for InBrowserCleanerUI experiment (Closed)
Patch Set: Histograms and enums Created 3 years, 5 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/ui/webui/settings/chrome_cleanup_handler.cc
diff --git a/chrome/browser/ui/webui/settings/chrome_cleanup_handler.cc b/chrome/browser/ui/webui/settings/chrome_cleanup_handler.cc
index 8965dafa3bec7498abef5948cf508324bb214300..f30940fc8ef99701688b72258ad8ffe040dad97c 100644
--- a/chrome/browser/ui/webui/settings/chrome_cleanup_handler.cc
+++ b/chrome/browser/ui/webui/settings/chrome_cleanup_handler.cc
@@ -8,6 +8,7 @@
#include "base/command_line.h"
#include "base/feature_list.h"
+#include "base/metrics/histogram_macros.h"
#include "base/synchronization/lock.h"
#include "base/values.h"
#include "chrome/browser/safe_browsing/chrome_cleaner/srt_field_trial_win.h"
@@ -133,6 +134,7 @@ void ChromeCleanupHandler::HandleRegisterChromeCleanerObserver(
DCHECK(
base::FeatureList::IsEnabled(safe_browsing::kInBrowserCleanerUIFeature));
+ UMA_HISTOGRAM_BOOLEAN("SoftwareReporter.CleanupCardShown", true);
csharp 2017/07/07 17:32:51 It seems odd to have a boolean histogram that is o
ftirelo 2017/07/07 20:27:53 Used a single-value enum instead.
AllowJavascript();
}
@@ -147,6 +149,8 @@ void ChromeCleanupHandler::HandleRestartComputer(const base::ListValue* args) {
void ChromeCleanupHandler::HandleStartCleanup(const base::ListValue* args) {
DCHECK_EQ(0U, args->GetSize());
+ safe_browsing::RecordCleanupStartedHistogram(
csharp 2017/07/07 17:32:51 Maybe also worth recording this in the suggested S
ftirelo 2017/07/07 20:27:53 As discussed offline, it will be tricky to do that
+ safe_browsing::CLEANUP_STARTED_FROM_PROMPT_IN_SETTINGS);
controller_->ReplyWithUserResponse(
// TODO(proberge): Send kAcceptedWithLogs or kAcceptedWithoutLogs based on
// the state of a logs upload permissions checkbox.

Powered by Google App Engine
This is Rietveld 408576698