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

Unified Diff: chrome/browser/tab_contents/navigation_metrics_recorder.cc

Issue 1581473002: Remove base/win/metro.{cc|h} and some associated code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 11 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/tab_contents/navigation_metrics_recorder.cc
diff --git a/chrome/browser/tab_contents/navigation_metrics_recorder.cc b/chrome/browser/tab_contents/navigation_metrics_recorder.cc
index 81fac736701891bbec56d994748e991c836bb0cd..8ee3fdd80a8aeb4aae3ec7fd496eb3e746a524c9 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
-}

Powered by Google App Engine
This is Rietveld 408576698