summaryrefslogtreecommitdiffstats
path: root/android_webview/browser
diff options
context:
space:
mode:
authordroger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-14 18:03:03 +0000
committerdroger@chromium.org <droger@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-14 18:03:03 +0000
commit1f0c46213502eec4aa27aa9372323c66e2ee0224 (patch)
tree78bffdf3440c7918f63ed0bec27828eb92f1426a /android_webview/browser
parent716775259699430736d1a461131d2bc9982e1dc3 (diff)
downloadchromium_src-1f0c46213502eec4aa27aa9372323c66e2ee0224.zip
chromium_src-1f0c46213502eec4aa27aa9372323c66e2ee0224.tar.gz
chromium_src-1f0c46213502eec4aa27aa9372323c66e2ee0224.tar.bz2
Adds RefCountedDeleteOnMessageLoop
RefCountedDeleteOnMessageLoop is similar to RefCountedThreadSafe, but guarantees that the referenced object will be deleted on the specified loop. The functionality is similar to content::DeleteOnThread<> but does not depend on BrowserThread. The CL includes an example use of the class. BUG=248049 TBR=stuartmorgan, joth Review URL: https://chromiumcodereview.appspot.com/16938006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206445 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/browser')
-rw-r--r--android_webview/browser/aw_form_database_service.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/android_webview/browser/aw_form_database_service.cc b/android_webview/browser/aw_form_database_service.cc
index 72b8b91..951f82b 100644
--- a/android_webview/browser/aw_form_database_service.cc
+++ b/android_webview/browser/aw_form_database_service.cc
@@ -28,7 +28,8 @@ AwFormDatabaseService::AwFormDatabaseService(const base::FilePath path)
has_form_data_(false),
completion_(false, false) {
- web_database_ = new WebDatabaseService(path.Append(kWebDataFilename));
+ web_database_ = new WebDatabaseService(path.Append(kWebDataFilename),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI));
web_database_->AddTable(
scoped_ptr<WebDatabaseTable>(new autofill::AutofillTable(
l10n_util::GetDefaultLocale())));