 Chromium Code Reviews
 Chromium Code Reviews Issue 2628863004:
  [Android WebView] Ensure we have user consent before uploading minidumps  (Closed)
    
  
    Issue 2628863004:
  [Android WebView] Ensure we have user consent before uploading minidumps  (Closed) 
  | Index: android_webview/java/src/org/chromium/android_webview/UserConsentInterface.java | 
| diff --git a/android_webview/java/src/org/chromium/android_webview/UserConsentInterface.java b/android_webview/java/src/org/chromium/android_webview/UserConsentInterface.java | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..50324572b9895b753655c086974fe28f841fe013 | 
| --- /dev/null | 
| +++ b/android_webview/java/src/org/chromium/android_webview/UserConsentInterface.java | 
| @@ -0,0 +1,23 @@ | 
| +// Copyright 2017 The Chromium Authors. All rights reserved. | 
| +// Use of this source code is governed by a BSD-style license that can be | 
| +// found in the LICENSE file. | 
| + | 
| +package org.chromium.android_webview; | 
| + | 
| +import android.webkit.ValueCallback; | 
| + | 
| +/** | 
| + * Interface for checking user consent for Minidump uploading. | 
| + */ | 
| +public interface UserConsentInterface { | 
| 
sgurun-gerrit only
2017/01/13 08:14:21
Is this class really necessary?
 
gsennton
2017/01/13 19:01:55
Its only use is to allow me to mock PlatformServic
 
gsennton
2017/01/23 17:50:39
Removed this now.
 | 
| + /** | 
| + * Returns whether this interface is available for querying. | 
| + */ | 
| + boolean userConsentInterfaceAvailable(); | 
| + | 
| + /** | 
| + * Must be called on UI thread, returns whether we have user consent. The result is posted to | 
| + * the UI thread as {@param callback}. | 
| + */ | 
| + void userConsents(ValueCallback<Boolean> callback); | 
| +} |