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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 14271024: [Android WebView] Move the most of WebSettings into AwSettings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated findbugs issues Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
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 fc76afa7c0da93b0e80acfdf25642da699559c75..94190beda3910d4d9e1dc14ce94526364789337a 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
@@ -519,7 +519,6 @@ public class ContentViewCore implements MotionEventDelegate, NavigationClient {
* containerView.
* @param nativeWebContents A pointer to the native web contents.
* @param windowAndroid An instance of the WindowAndroid.
- * @param isAccessFromFileURLsGrantedByDefault Default WebSettings configuration.
*/
// Perform important post-construction set up of the ContentViewCore.
// We do not require the containing view in the constructor to allow embedders to create a
@@ -531,8 +530,7 @@ public class ContentViewCore implements MotionEventDelegate, NavigationClient {
// Note that the caller remains the owner of the nativeWebContents and is responsible for
// deleting it after destroying the ContentViewCore.
public void initialize(ViewGroup containerView, InternalAccessDelegate internalDispatcher,
- int nativeWebContents, WindowAndroid windowAndroid,
- boolean isAccessFromFileURLsGrantedByDefault) {
+ int nativeWebContents, WindowAndroid windowAndroid) {
// Check whether to use hardware acceleration. This is a bit hacky, and
// only works if the Context is actually an Activity (as it is in the
// Chrome application).
@@ -560,12 +558,8 @@ public class ContentViewCore implements MotionEventDelegate, NavigationClient {
mNativeContentViewCore = nativeInit(mHardwareAccelerated,
nativeWebContents, viewAndroidNativePointer, windowNativePointer);
- mContentSettings = new ContentSettings(
- this, mNativeContentViewCore, isAccessFromFileURLsGrantedByDefault);
+ mContentSettings = new ContentSettings(this, mNativeContentViewCore);
initializeContainerView(internalDispatcher);
- if (mPersonality == PERSONALITY_VIEW) {
joth 2013/04/24 17:07:44 can we get rid of the PERSONALITY thing from conte
mnaganov (inactive) 2013/04/24 17:41:37 I've found this fragment in initializeContainerVie
benm (inactive) 2013/04/24 18:02:15 Ah, I remember that one, never did get to the bott
- setAllUserAgentOverridesInHistory();
- }
mAccessibilityInjector = AccessibilityInjector.newInstance(this);
mAccessibilityInjector.addOrRemoveAccessibilityApisIfNecessary();
@@ -812,11 +806,6 @@ public class ContentViewCore implements MotionEventDelegate, NavigationClient {
params.mCanLoadLocalResources);
}
- void setAllUserAgentOverridesInHistory() {
- nativeSetAllUserAgentOverridesInHistory(mNativeContentViewCore,
- mContentSettings.getUserAgentString());
- }
-
/**
* Stops loading the current web contents.
*/
@@ -2756,9 +2745,6 @@ public class ContentViewCore implements MotionEventDelegate, NavigationClient {
String virtualUrlForDataUrl,
boolean canLoadLocalResources);
- private native void nativeSetAllUserAgentOverridesInHistory(int nativeContentViewCoreImpl,
- String userAgentOverride);
-
private native String nativeGetURL(int nativeContentViewCoreImpl);
private native String nativeGetTitle(int nativeContentViewCoreImpl);

Powered by Google App Engine
This is Rietveld 408576698