Chromium Code Reviews| Index: content/browser/android/content_view_core_impl.cc |
| diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
| index 93e95b3df5aeba29952e178285429f7779b183de..06e8438d13a59ca84f113e1a75685648d89c6841 100644 |
| --- a/content/browser/android/content_view_core_impl.cc |
| +++ b/content/browser/android/content_view_core_impl.cc |
| @@ -14,6 +14,7 @@ |
| #include "base/logging.h" |
| #include "base/macros.h" |
| #include "base/metrics/histogram_macros.h" |
| +#include "base/metrics/user_metrics.h" |
| #include "base/strings/string_util.h" |
| #include "base/values.h" |
| #include "cc/layers/layer.h" |
| @@ -888,6 +889,7 @@ void ContentViewCoreImpl::SendOrientationChangeEvent( |
| const JavaParamRef<jobject>& obj, |
| jint orientation) { |
| if (device_orientation_ != orientation) { |
| + base::RecordAction(base::UserMetricsAction("OrientationChange")); |
|
mlamouri (slow - plz ping)
2016/12/06 13:51:22
nit: I would call this "ScreenOrientationChange" t
Zhiqiang Zhang (Slow)
2016/12/06 17:58:44
Done.
|
| device_orientation_ = orientation; |
| SendOrientationChangeEventInternal(); |
| } |