summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/navigation_metrics_recorder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/navigation_metrics_recorder.cc')
-rw-r--r--chrome/browser/tab_contents/navigation_metrics_recorder.cc21
1 files changed, 0 insertions, 21 deletions
diff --git a/chrome/browser/tab_contents/navigation_metrics_recorder.cc b/chrome/browser/tab_contents/navigation_metrics_recorder.cc
index 81fac73..8ee3fdd 100644
--- a/chrome/browser/tab_contents/navigation_metrics_recorder.cc
+++ b/chrome/browser/tab_contents/navigation_metrics_recorder.cc
@@ -20,7 +20,6 @@
#if defined(OS_WIN)
#include "base/win/windows_version.h"
-#include "chrome/browser/metro_utils/metro_chrome_win.h"
#endif
DEFINE_WEB_CONTENTS_USER_DATA_KEY(NavigationMetricsRecorder);
@@ -49,23 +48,3 @@ void NavigationMetricsRecorder::DidNavigateMainFrame(
details.previous_url);
}
}
-
-void NavigationMetricsRecorder::DidStartLoading() {
-#if defined(OS_WIN) && defined(USE_ASH)
- content::RenderViewHost* rvh = web_contents()->GetRenderViewHost();
-
- if (rvh && base::win::GetVersion() >= base::win::VERSION_WIN8) {
- content::RenderWidgetHostView* rwhv = rvh->GetWidget()->GetView();
- if (rwhv) {
- gfx::NativeView native_view = rwhv->GetNativeView();
- if (native_view) {
- chrome::HostDesktopType desktop =
- chrome::GetHostDesktopTypeForNativeView(native_view);
- UMA_HISTOGRAM_ENUMERATION("Win8.PageLoad",
- chrome::GetWin8Environment(desktop),
- chrome::WIN_8_ENVIRONMENT_MAX);
- }
- }
- }
-#endif
-}