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

Unified Diff: blimp/client/core/contents/blimp_contents_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 | « blimp/client/core/compositor/blimp_compositor.cc ('k') | blimp/client/core/dummy_blimp_client_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/contents/blimp_contents_impl.cc
diff --git a/blimp/client/core/contents/blimp_contents_impl.cc b/blimp/client/core/contents/blimp_contents_impl.cc
index a4c587ee12cfd66fa40352377e30d9ce1fa1024a..71019de418d8643fb7f37f271167b53d2dcfa461 100644
--- a/blimp/client/core/contents/blimp_contents_impl.cc
+++ b/blimp/client/core/contents/blimp_contents_impl.cc
@@ -5,6 +5,7 @@
#include "blimp/client/core/contents/blimp_contents_impl.h"
#include "base/memory/ptr_util.h"
+#include "base/metrics/histogram_macros.h"
#include "base/supports_user_data.h"
#include "blimp/client/core/contents/blimp_contents_view.h"
#include "blimp/client/core/contents/tab_control_feature.h"
@@ -90,10 +91,12 @@ gfx::NativeView BlimpContentsImpl::GetNativeView() {
void BlimpContentsImpl::Show() {
compositor_manager_.SetVisible(true);
+ UMA_HISTOGRAM_BOOLEAN("Blimp.Tab.Visible", true);
}
void BlimpContentsImpl::Hide() {
compositor_manager_.SetVisible(false);
+ UMA_HISTOGRAM_BOOLEAN("Blimp.Tab.Visible", false);
}
bool BlimpContentsImpl::HasObserver(BlimpContentsObserver* observer) {
« no previous file with comments | « blimp/client/core/compositor/blimp_compositor.cc ('k') | blimp/client/core/dummy_blimp_client_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698