| Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| index ebdadbf503f2e5d654450c444144406e93a385fd..8274a8b8a2a96cdc4a74c2fb8cce9abc0335cbe2 100644
|
| --- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| +++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
|
| @@ -356,44 +356,16 @@ public class ContentViewCore implements MotionEventDelegate {
|
| return mContentViewClient;
|
| }
|
|
|
| - /**
|
| - * Load url without fixing up the url string. Consumers of ContentView are responsible for
|
| - * ensuring the URL passed in is properly formatted (i.e. the scheme has been added if left
|
| - * off during user input).
|
| - *
|
| - * @param url The url to load.
|
| - */
|
| - public void loadUrlWithoutUrlSanitization(String url) {
|
| - loadUrlWithoutUrlSanitization(url, PAGE_TRANSITION_TYPED);
|
| - }
|
| -
|
| - /**
|
| - * Load url without fixing up the url string. Consumers of ContentView are responsible for
|
| - * ensuring the URL passed in is properly formatted (i.e. the scheme has been added if left
|
| - * off during user input).
|
| - *
|
| - * @param url The url to load.
|
| - * @param pageTransition Page transition id that describes the action that led to this
|
| - * navigation. It is important for ranking URLs in the history so the
|
| - * omnibox can report suggestions correctly.
|
| - */
|
| - public void loadUrlWithoutUrlSanitization(String url, int pageTransition) {
|
| - mAccessibilityInjector.addOrRemoveAccessibilityApisIfNecessary();
|
| + public void loadUrl(LoadUrlParams params) {
|
| if (mNativeContentViewCore != 0) {
|
| - if (isPersonalityView()) {
|
| - nativeLoadUrlWithoutUrlSanitizationWithUserAgentOverride(
|
| - mNativeContentViewCore,
|
| - url,
|
| - pageTransition,
|
| - mContentSettings.getUserAgentString());
|
| - } else {
|
| - // Chrome stores overridden UA strings in navigation history
|
| - // items, so they stay the same on going back / forward.
|
| - nativeLoadUrlWithoutUrlSanitization(
|
| - mNativeContentViewCore,
|
| - url,
|
| - pageTransition);
|
| - }
|
| + nativeLoadUrl(mNativeContentViewCore,
|
| + params.mUrl,
|
| + params.mLoadUrlType,
|
| + params.mTransitionType,
|
| + params.mUaOverrideOption,
|
| + params.mPostData,
|
| + params.mBaseUrlForDataUrl,
|
| + params.mVirtualUrlForDataUrl);
|
| }
|
| }
|
|
|
| @@ -1121,11 +1093,15 @@ public class ContentViewCore implements MotionEventDelegate {
|
|
|
| private static native void nativeDestroy(int nativeContentViewCoreImpl);
|
|
|
| - private native void nativeLoadUrlWithoutUrlSanitization(int nativeContentViewCoreImpl,
|
| - String url, int pageTransition);
|
| - private native void nativeLoadUrlWithoutUrlSanitizationWithUserAgentOverride(
|
| - int nativeContentViewCoreImpl, String url, int pageTransition,
|
| - String userAgentOverride);
|
| + private native void nativeLoadUrl(
|
| + int nativeContentViewCore,
|
| + String url,
|
| + int loadUrlType,
|
| + int transitionType,
|
| + int uaOverrideOption,
|
| + byte[] postData,
|
| + String baseUrlForDataUrl,
|
| + String virtualUrlForDataUrl);
|
|
|
| private native String nativeGetURL(int nativeContentViewCoreImpl);
|
|
|
|
|