diff options
author | nduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-15 20:33:46 +0000 |
---|---|---|
committer | nduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-15 20:33:46 +0000 |
commit | edd685f15dfd2841aaeddab567aea0623db1ae69 (patch) | |
tree | 9caa53e84eb2787471dd16009daf02fb85f8890e /webkit/database | |
parent | 5b79e5250785613d6dc7a42a27a45bb44b9cf7a0 (diff) | |
download | chromium_src-edd685f15dfd2841aaeddab567aea0623db1ae69.zip chromium_src-edd685f15dfd2841aaeddab567aea0623db1ae69.tar.gz chromium_src-edd685f15dfd2841aaeddab567aea0623db1ae69.tar.bz2 |
Add MessageLoopProxy::current
Review URL: http://codereview.chromium.org/7583053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96819 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/database')
-rw-r--r-- | webkit/database/database_connections.cc | 2 | ||||
-rw-r--r-- | webkit/database/database_quota_client_unittest.cc | 10 | ||||
-rw-r--r-- | webkit/database/database_tracker_unittest.cc | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/webkit/database/database_connections.cc b/webkit/database/database_connections.cc index d90498f..a5d762d 100644 --- a/webkit/database/database_connections.cc +++ b/webkit/database/database_connections.cc @@ -120,7 +120,7 @@ bool DatabaseConnections::RemoveConnectionsHelper( DatabaseConnectionsWrapper::DatabaseConnectionsWrapper() : waiting_for_dbs_to_close_(false), - main_thread_(base::MessageLoopProxy::CreateForCurrentThread()) { + main_thread_(base::MessageLoopProxy::current()) { } DatabaseConnectionsWrapper::~DatabaseConnectionsWrapper() { diff --git a/webkit/database/database_quota_client_unittest.cc b/webkit/database/database_quota_client_unittest.cc index cc2762a..2f29f60 100644 --- a/webkit/database/database_quota_client_unittest.cc +++ b/webkit/database/database_quota_client_unittest.cc @@ -71,7 +71,7 @@ class MockDatabaseTracker : public DatabaseTracker { net::CompletionCallback* callback) { ++delete_called_count_; if (async_delete()) { - base::MessageLoopProxy::CreateForCurrentThread()->PostTask(FROM_HERE, + base::MessageLoopProxy::current()->PostTask(FROM_HERE, NewRunnableMethod(this, &MockDatabaseTracker::AsyncDeleteDataForOrigin, callback)); return net::ERR_IO_PENDING; @@ -205,7 +205,7 @@ class DatabaseQuotaClientTest : public testing::Test { TEST_F(DatabaseQuotaClientTest, GetOriginUsage) { DatabaseQuotaClient client( - base::MessageLoopProxy::CreateForCurrentThread(), + base::MessageLoopProxy::current(), mock_tracker()); EXPECT_EQ(0, GetOriginUsage(&client, kOriginA, kTemp)); @@ -221,7 +221,7 @@ TEST_F(DatabaseQuotaClientTest, GetOriginUsage) { TEST_F(DatabaseQuotaClientTest, GetOriginsForHost) { DatabaseQuotaClient client( - base::MessageLoopProxy::CreateForCurrentThread(), + base::MessageLoopProxy::current(), mock_tracker()); EXPECT_EQ(kOriginA.host(), kOriginB.host()); @@ -247,7 +247,7 @@ TEST_F(DatabaseQuotaClientTest, GetOriginsForHost) { TEST_F(DatabaseQuotaClientTest, GetOriginsForType) { DatabaseQuotaClient client( - base::MessageLoopProxy::CreateForCurrentThread(), + base::MessageLoopProxy::current(), mock_tracker()); EXPECT_TRUE(GetOriginsForType(&client, kTemp).empty()); @@ -263,7 +263,7 @@ TEST_F(DatabaseQuotaClientTest, GetOriginsForType) { TEST_F(DatabaseQuotaClientTest, DeleteOriginData) { DatabaseQuotaClient client( - base::MessageLoopProxy::CreateForCurrentThread(), + base::MessageLoopProxy::current(), mock_tracker()); // Perm deletions are short circuited in the Client and diff --git a/webkit/database/database_tracker_unittest.cc b/webkit/database/database_tracker_unittest.cc index c6404b1..cf499b9 100644 --- a/webkit/database/database_tracker_unittest.cc +++ b/webkit/database/database_tracker_unittest.cc @@ -540,7 +540,7 @@ class DatabaseTracker_TestHelper_Test { temp_dir.path(), false, true, new TestSpecialStoragePolicy, NULL, - base::MessageLoopProxy::CreateForCurrentThread())); + base::MessageLoopProxy::current())); // Open three new databases. tracker->DatabaseOpened(kOrigin1, kDB1, kDescription, 0, |