Index: chrome/browser/predictors/resource_prefetch_common.cc |
diff --git a/chrome/browser/predictors/resource_prefetch_common.cc b/chrome/browser/predictors/resource_prefetch_common.cc |
index d558eab5f0f7e4708c1f126f877a4edc3676167c..6324cd3e9a637cd3a260a4383f99a9ccb80a32a2 100644 |
--- a/chrome/browser/predictors/resource_prefetch_common.cc |
+++ b/chrome/browser/predictors/resource_prefetch_common.cc |
@@ -15,8 +15,8 @@ |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/pref_names.h" |
#include "content/public/browser/browser_thread.h" |
+#include "content/public/browser/render_frame_host.h" |
#include "content/public/browser/render_process_host.h" |
-#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/web_contents.h" |
using base::FieldTrialList; |
@@ -165,7 +165,7 @@ NavigationID::NavigationID(const NavigationID& other) |
NavigationID::NavigationID(content::WebContents* web_contents) |
: render_process_id(web_contents->GetRenderProcessHost()->GetID()), |
- render_frame_id(web_contents->GetRenderViewHost()->GetRoutingID()), |
+ render_frame_id(web_contents->GetMainFrame()->GetRoutingID()), |
main_frame_url(web_contents->GetURL()) { |
} |