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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 11785011: Remove incognito parameter from AwContents (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | android_webview/lib/aw_browser_dependency_factory_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index 27038d6798e536d1ea791b897a76ef8b924ee27e..4000c235bdb6890876fbbb13ad005d506e2d4424 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -262,6 +262,17 @@ public class AwContents {
}
}
+ // TODO(kristianm): Merge with other constructor when privateBrowsing
+ // parameter is removed in Android
+ public AwContents(ViewGroup containerView,
boliu 2013/01/05 04:54:04 I assume we are keeping the old version because of
Kristian Monsen 2013/01/05 05:25:47 This constructor is never called upstream. Everyth
boliu 2013/01/05 05:31:42 But it will be called after the old one is removed
Kristian Monsen 2013/01/05 08:15:25 Compiled everything with old constructor commented
+ ContentViewCore.InternalAccessDelegate internalAccessAdapter,
+ AwContentsClient contentsClient,
+ NativeWindow nativeWindow,
+ boolean isAccessFromFileURLsGrantedByDefault) {
+ this(containerView, internalAccessAdapter, contentsClient, nativeWindow, false,
+ isAccessFromFileURLsGrantedByDefault)
+ }
+
/**
* @param containerView the view-hierarchy item this object will be bound to.
* @param internalAccessAdapter to access private methods on containerView.
@@ -281,7 +292,7 @@ public class AwContents {
// setup performs process initialisation work needed by AwContents.
mContentViewCore = new ContentViewCore(containerView.getContext(),
ContentViewCore.PERSONALITY_VIEW);
- mNativeAwContents = nativeInit(contentsClient.getWebContentsDelegate(), privateBrowsing);
+ mNativeAwContents = nativeInit(contentsClient.getWebContentsDelegate());
mContentsClient = contentsClient;
mCleanupReference = new CleanupReference(this, new DestroyRunnable(mNativeAwContents));
mClientCallbackHandler = new ClientCallbackHandler();
@@ -934,8 +945,7 @@ public class AwContents {
// Native methods
//--------------------------------------------------------------------------------------------
- private native int nativeInit(AwWebContentsDelegate webViewWebContentsDelegate,
- boolean privateBrowsing);
+ private native int nativeInit(AwWebContentsDelegate webViewWebContentsDelegate);
private static native void nativeDestroy(int nativeAwContents);
private static native void nativeSetAwDrawSWFunctionTable(int functionTablePointer);
private static native int nativeGetAwDrawGLFunction();
« no previous file with comments | « no previous file | android_webview/lib/aw_browser_dependency_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698