OSDN Git Service

am 679c8f68: am 38915fd4: Revert "Add a delimiter between scheme and host"
authorSelim Gurun <sgurun@google.com>
Sat, 20 Apr 2013 07:19:41 +0000 (00:19 -0700)
committerAndroid Git Automerger <android-git-automerger@android.com>
Sat, 20 Apr 2013 07:19:41 +0000 (00:19 -0700)
* commit '679c8f689f6799d143719bb8eb839e2640bf9d07':
  Revert "Add a delimiter between scheme and host"

1  2 
core/java/android/webkit/BrowserFrame.java
core/java/android/webkit/WebView.java
core/java/android/webkit/WebViewDatabaseClassic.java

@@@ -590,17 -585,12 +590,16 @@@ public class WebView extends AbsoluteLa
      //-------------------------------------------------------------------------
  
      /**
 -     * Saves the username and password for a particular host in this WebView's
 -     * internal database.
 +     * Sets a username and password pair for the specified host. This data is
 +     * used by the Webview to autocomplete username and password fields in web
 +     * forms. Note that this is unrelated to the credentials used for HTTP
 +     * authentication.
       *
-      * @param host the host that required the credentials. It is recommended that
-      *             the host is given using scheme://hostname format.
+      * @param host the host that required the credentials
       * @param username the username for the given host
       * @param password the password for the given host
 +     * @see WebViewDatabase#clearUsernamePassword
 +     * @see WebViewDatabase#hasUsernamePassword
       */
      public void savePassword(String host, String username, String password) {
          checkThread();
@@@ -50,10 -50,8 +50,9 @@@ final class WebViewDatabaseClassic exte
      // 10 -> 11 Drop cookies and cache now managed by the chromium stack,
      //          and update the form data table to use the new format
      //          implemented for b/5265606.
-     // 11 -> 12 Add a delimiter between scheme and host when storing passwords
  
      private static WebViewDatabaseClassic sInstance = null;
 +    private static final Object sInstanceLock = new Object();
  
      private static SQLiteDatabase sDatabase = null;