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

Side by Side Diff: chrome/browser/tab_contents/navigation_metrics_recorder.cc

Issue 1336823003: Move chrome::HostDesktopType to ui::HostDesktopType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base_session_service_delegate_impl
Patch Set: Fix build on Mac and CrOS Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" 5 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h"
6 6
7 #include "base/metrics/histogram_macros.h" 7 #include "base/metrics/histogram_macros.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "components/navigation_metrics/navigation_metrics.h" 9 #include "components/navigation_metrics/navigation_metrics.h"
10 #include "components/rappor/rappor_utils.h" 10 #include "components/rappor/rappor_utils.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 void NavigationMetricsRecorder::DidStartLoading() { 51 void NavigationMetricsRecorder::DidStartLoading() {
52 #if defined(OS_WIN) && defined(USE_ASH) 52 #if defined(OS_WIN) && defined(USE_ASH)
53 content::RenderViewHost* rvh = web_contents()->GetRenderViewHost(); 53 content::RenderViewHost* rvh = web_contents()->GetRenderViewHost();
54 54
55 if (rvh && base::win::GetVersion() >= base::win::VERSION_WIN8) { 55 if (rvh && base::win::GetVersion() >= base::win::VERSION_WIN8) {
56 content::RenderWidgetHostView* rwhv = rvh->GetView(); 56 content::RenderWidgetHostView* rwhv = rvh->GetView();
57 if (rwhv) { 57 if (rwhv) {
58 gfx::NativeView native_view = rwhv->GetNativeView(); 58 gfx::NativeView native_view = rwhv->GetNativeView();
59 if (native_view) { 59 if (native_view) {
60 chrome::HostDesktopType desktop = 60 ui::HostDesktopType desktop =
61 chrome::GetHostDesktopTypeForNativeView(native_view); 61 chrome::GetHostDesktopTypeForNativeView(native_view);
62 UMA_HISTOGRAM_ENUMERATION("Win8.PageLoad", 62 UMA_HISTOGRAM_ENUMERATION("Win8.PageLoad",
63 chrome::GetWin8Environment(desktop), 63 chrome::GetWin8Environment(desktop),
64 chrome::WIN_8_ENVIRONMENT_MAX); 64 chrome::WIN_8_ENVIRONMENT_MAX);
65 } 65 }
66 } 66 }
67 } 67 }
68 #endif 68 #endif
69 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698