| 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 5e9149f3004b920ff60cc5db08504b8b7f33496d..1be27f0b9b0b922e2b9aee20bf5683103c8b31ff 100644
|
| --- a/chrome/browser/tab_contents/navigation_metrics_recorder.cc
|
| +++ b/chrome/browser/tab_contents/navigation_metrics_recorder.cc
|
| @@ -33,11 +33,12 @@ void NavigationMetricsRecorder::DidNavigateMainFrame(
|
| details.is_in_page);
|
| }
|
|
|
| -void NavigationMetricsRecorder::DidStartLoading(
|
| - content::RenderViewHost* render_view_host) {
|
| +void NavigationMetricsRecorder::DidStartLoading() {
|
| #if defined(OS_WIN) && defined(USE_ASH)
|
| - if (render_view_host && base::win::GetVersion() >= base::win::VERSION_WIN8) {
|
| - content::RenderWidgetHostView* rwhv = render_view_host->GetView();
|
| + content::RenderViewHost* rvh = web_contents()->GetRenderViewHost();
|
| +
|
| + if (rvh && base::win::GetVersion() >= base::win::VERSION_WIN8) {
|
| + content::RenderWidgetHostView* rwhv = rvh->GetView();
|
| if (rwhv) {
|
| gfx::NativeView native_view = rwhv->GetNativeView();
|
| if (native_view) {
|
| @@ -51,5 +52,3 @@ void NavigationMetricsRecorder::DidStartLoading(
|
| }
|
| #endif
|
| }
|
| -
|
| -
|
|
|