Index: chrome/browser/android/tab_android.cc |
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc |
index 6842beca7a8141403bca24c669ff2fb7c38bda88..c0fcd6eeb0afd6824b5dd94085f2387d94e84f58 100644 |
--- a/chrome/browser/android/tab_android.cc |
+++ b/chrome/browser/android/tab_android.cc |
@@ -470,8 +470,7 @@ TabAndroid::TabLoadStatus TabAndroid::LoadUrl(JNIEnv* env, |
jstring j_referrer_url, |
jint referrer_policy, |
jboolean is_renderer_initiated) { |
- content::ContentViewCore* content_view = GetContentViewCore(); |
- if (!content_view) |
+ if (!web_contents()) |
return PAGE_LOAD_FAILED; |
GURL gurl(base::android::ConvertJavaStringToUTF8(env, url)); |
@@ -564,7 +563,7 @@ TabAndroid::TabLoadStatus TabAndroid::LoadUrl(JNIEnv* env, |
return DEFAULT_PAGE_LOAD; |
} |
load_params.is_renderer_initiated = is_renderer_initiated; |
- content_view->LoadUrl(load_params); |
+ web_contents()->GetController().LoadURLWithParams(load_params); |
} |
return DEFAULT_PAGE_LOAD; |
} |