Skip to content

Commit 003952b

Browse files
Jonathan DixonAndroid (Google) Code Review
authored andcommitted
Merge "Fix dumprendertree crash"
2 parents de09576 + 03b433c commit 003952b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/java/android/webkit/CookieManager.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ protected void flushCookieStore() {
167167
* file scheme URLs
168168
*/
169169
public static boolean allowFileSchemeCookies() {
170-
throw new MustOverrideException();
170+
// TODO: indirect this via the WebViewFactoryProvider.Statics interface. http://b/6379925
171+
return CookieManagerClassic.allowFileSchemeCookies();
171172
}
172173

173174
/**
@@ -181,6 +182,7 @@ public static boolean allowFileSchemeCookies() {
181182
* {@link WebView} or CookieManager instance has been created.
182183
*/
183184
public static void setAcceptFileSchemeCookies(boolean accept) {
184-
throw new MustOverrideException();
185+
// TODO: indirect this via the WebViewFactoryProvider.Statics interface. http://b/6379925
186+
CookieManagerClassic.setAcceptFileSchemeCookies(accept);
185187
}
186188
}

0 commit comments

Comments
 (0)