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

Unified Diff: blimp/client/core/blimp_client_context_impl.cc

Issue 2326913004: Adding UMA stats for Blimp Client (Closed)
Patch Set: dtrainor comments Created 4 years, 3 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
« no previous file with comments | « no previous file | blimp/client/core/compositor/blimp_compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/blimp_client_context_impl.cc
diff --git a/blimp/client/core/blimp_client_context_impl.cc b/blimp/client/core/blimp_client_context_impl.cc
index 03e447668e88505c94d75d2cb33e080dafa1f93f..b147f394a91c9ae2f30db7da3717f7f15d063444 100644
--- a/blimp/client/core/blimp_client_context_impl.cc
+++ b/blimp/client/core/blimp_client_context_impl.cc
@@ -10,6 +10,7 @@
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
+#include "base/metrics/histogram_macros.h"
#include "base/threading/sequenced_task_runner_handle.h"
#include "blimp/client/core/blimp_client_switches.h"
#include "blimp/client/core/compositor/blimp_compositor_dependencies.h"
@@ -104,6 +105,8 @@ BlimpClientContextImpl::BlimpClientContextImpl(
io_thread_task_runner_->PostTask(
FROM_HERE, base::Bind(&ClientNetworkComponents::Initialize,
base::Unretained(net_components_.get())));
+
+ UMA_HISTOGRAM_BOOLEAN("Blimp.Supported", true);
}
BlimpClientContextImpl::~BlimpClientContextImpl() {
@@ -143,9 +146,13 @@ void BlimpClientContextImpl::ConnectToAssignmentSource(
weak_factory_.GetWeakPtr()));
}
-void BlimpClientContextImpl::OnConnected() {}
+void BlimpClientContextImpl::OnConnected() {
+ UMA_HISTOGRAM_BOOLEAN("Blimp.Connected", true);
+}
-void BlimpClientContextImpl::OnDisconnected(int result) {}
+void BlimpClientContextImpl::OnDisconnected(int result) {
+ UMA_HISTOGRAM_BOOLEAN("Blimp.Connected", false);
+}
GURL BlimpClientContextImpl::GetAssignerURL() {
return GURL(kDefaultAssignerUrl);
« no previous file with comments | « no previous file | blimp/client/core/compositor/blimp_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698