| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package com.android.webview.chromium; | 5 package com.android.webview.chromium; |
| 6 | 6 |
| 7 import android.Manifest; | 7 import android.Manifest; |
| 8 import android.app.ActivityManager; | 8 import android.app.ActivityManager; |
| 9 import android.content.ComponentCallbacks2; | 9 import android.content.ComponentCallbacks2; |
| 10 import android.content.Context; | 10 import android.content.Context; |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 if (mWebViewDatabase == null) { | 544 if (mWebViewDatabase == null) { |
| 545 ensureChromiumStartedLocked(true); | 545 ensureChromiumStartedLocked(true); |
| 546 HttpAuthDatabase awDatabase = ThreadUtils.runningOnUiThread() | 546 HttpAuthDatabase awDatabase = ThreadUtils.runningOnUiThread() |
| 547 ? getBrowserContextOnUiThread().getHttpAuthDatabase(cont
ext) | 547 ? getBrowserContextOnUiThread().getHttpAuthDatabase(cont
ext) |
| 548 : runOnUiThreadBlocking(new Callable<HttpAuthDatabase>()
{ | 548 : runOnUiThreadBlocking(new Callable<HttpAuthDatabase>()
{ |
| 549 @Override | 549 @Override |
| 550 public HttpAuthDatabase call() { | 550 public HttpAuthDatabase call() { |
| 551 return getBrowserContextOnUiThread().getHttpAuth
Database(context); | 551 return getBrowserContextOnUiThread().getHttpAuth
Database(context); |
| 552 } | 552 } |
| 553 }); | 553 }); |
| 554 mWebViewDatabase = new WebViewDatabaseAdapter(awDatabase); | 554 mWebViewDatabase = new WebViewDatabaseAdapter(this, awDatabase); |
| 555 } | 555 } |
| 556 } | 556 } |
| 557 return mWebViewDatabase; | 557 return mWebViewDatabase; |
| 558 } | 558 } |
| 559 | 559 |
| 560 WebViewDelegate getWebViewDelegate() { | 560 WebViewDelegate getWebViewDelegate() { |
| 561 return mWebViewDelegate; | 561 return mWebViewDelegate; |
| 562 } | 562 } |
| 563 } | 563 } |
| OLD | NEW |