Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1332)

Unified Diff: content/browser/indexed_db/indexed_db_browsertest.cc

Issue 1170623003: Revert "content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/histogram_synchronizer.cc ('k') | content/browser/indexed_db/indexed_db_quota_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_browsertest.cc
diff --git a/content/browser/indexed_db/indexed_db_browsertest.cc b/content/browser/indexed_db/indexed_db_browsertest.cc
index cf5b049e059673225cab5f9eb8b0ba0dae044f9a..2ab58c2cd2b03c4d114f1a578129bf5053549a94 100644
--- a/content/browser/indexed_db/indexed_db_browsertest.cc
+++ b/content/browser/indexed_db/indexed_db_browsertest.cc
@@ -9,9 +9,8 @@
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/lazy_instance.h"
-#include "base/location.h"
#include "base/memory/ref_counted.h"
-#include "base/single_thread_task_runner.h"
+#include "base/message_loop/message_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/thread_test_helper.h"
#include "content/browser/browser_main_loop.h"
@@ -143,7 +142,8 @@ class IndexedDBBrowserTest : public ContentBrowserTest {
GURL("file:///")),
base::Bind(&IndexedDBBrowserTest::DidGetDiskUsage, this));
scoped_refptr<base::ThreadTestHelper> helper(new base::ThreadTestHelper(
- BrowserMainLoop::GetInstance()->indexed_db_thread()->task_runner()));
+ BrowserMainLoop::GetInstance()->indexed_db_thread()->
+ message_loop_proxy()));
EXPECT_TRUE(helper->Run());
// Wait for DidGetDiskUsage to be called.
base::MessageLoop::current()->RunUntilIdle();
@@ -156,8 +156,10 @@ class IndexedDBBrowserTest : public ContentBrowserTest {
base::Bind(&IndexedDBContextImpl::GetOriginBlobFileCount, GetContext(),
GURL("file:///")),
base::Bind(&IndexedDBBrowserTest::DidGetBlobFileCount, this));
- scoped_refptr<base::ThreadTestHelper> helper(new base::ThreadTestHelper(
- BrowserMainLoop::GetInstance()->indexed_db_thread()->task_runner()));
+ scoped_refptr<base::ThreadTestHelper> helper(
+ new base::ThreadTestHelper(BrowserMainLoop::GetInstance()
+ ->indexed_db_thread()
+ ->message_loop_proxy()));
EXPECT_TRUE(helper->Run());
// Wait for DidGetBlobFileCount to be called.
base::MessageLoop::current()->RunUntilIdle();
@@ -321,7 +323,8 @@ class IndexedDBBrowserTestWithPreexistingLevelDB : public IndexedDBBrowserTest {
base::Bind(
&CopyLevelDBToProfile, shell(), context, EnclosingLevelDBDir()));
scoped_refptr<base::ThreadTestHelper> helper(new base::ThreadTestHelper(
- BrowserMainLoop::GetInstance()->indexed_db_thread()->task_runner()));
+ BrowserMainLoop::GetInstance()->indexed_db_thread()->
+ message_loop_proxy()));
ASSERT_TRUE(helper->Run());
}
@@ -474,8 +477,10 @@ IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DeleteForOriginDeletesBlobs) {
GetContext()->TaskRunner()->PostTask(
FROM_HERE, base::Bind(&IndexedDBContextImpl::DeleteForOrigin,
GetContext(), GURL("file:///")));
- scoped_refptr<base::ThreadTestHelper> helper(new base::ThreadTestHelper(
- BrowserMainLoop::GetInstance()->indexed_db_thread()->task_runner()));
+ scoped_refptr<base::ThreadTestHelper> helper(
+ new base::ThreadTestHelper(BrowserMainLoop::GetInstance()
+ ->indexed_db_thread()
+ ->message_loop_proxy()));
ASSERT_TRUE(helper->Run());
EXPECT_EQ(0, RequestDiskUsage());
}
« no previous file with comments | « content/browser/histogram_synchronizer.cc ('k') | content/browser/indexed_db/indexed_db_quota_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698