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

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

Issue 18147009: IndexedDB: Remove unnecessary scoped_refptr<T>::get() calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang-format Created 7 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/indexed_db/indexed_db_transaction.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_unittest.cc b/content/browser/indexed_db/indexed_db_unittest.cc
index 863be90ed5b4db889780c92e7442a6a3d169fdfd..a45f54438694e857a1c74fcc56d43dd5c2fa55db 100644
--- a/content/browser/indexed_db/indexed_db_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_unittest.cc
@@ -58,11 +58,8 @@ TEST_F(IndexedDBTest, ClearSessionOnlyDatabases) {
// Create the scope which will ensure we run the destructor of the context
// which should trigger the clean up.
{
- scoped_refptr<IndexedDBContextImpl> idb_context =
- new IndexedDBContextImpl(temp_dir.path(),
- special_storage_policy_.get(),
- NULL,
- task_runner_.get());
+ scoped_refptr<IndexedDBContextImpl> idb_context = new IndexedDBContextImpl(
+ temp_dir.path(), special_storage_policy_, NULL, task_runner_);
normal_path = idb_context->GetFilePathForTesting(
webkit_database::GetIdentifierFromOrigin(kNormalOrigin));
@@ -92,11 +89,8 @@ TEST_F(IndexedDBTest, SetForceKeepSessionState) {
{
// Create some indexedDB paths.
// With the levelDB backend, these are directories.
- scoped_refptr<IndexedDBContextImpl> idb_context =
- new IndexedDBContextImpl(temp_dir.path(),
- special_storage_policy_.get(),
- NULL,
- task_runner_.get());
+ scoped_refptr<IndexedDBContextImpl> idb_context = new IndexedDBContextImpl(
+ temp_dir.path(), special_storage_policy_, NULL, task_runner_);
// Save session state. This should bypass the destruction-time deletion.
idb_context->SetForceKeepSessionState();
@@ -151,11 +145,8 @@ TEST_F(IndexedDBTest, ForceCloseOpenDatabasesOnDelete) {
const GURL kTestOrigin("http://test/");
- scoped_refptr<IndexedDBContextImpl> idb_context =
- new IndexedDBContextImpl(temp_dir.path(),
- special_storage_policy_.get(),
- NULL,
- task_runner_.get());
+ scoped_refptr<IndexedDBContextImpl> idb_context = new IndexedDBContextImpl(
+ temp_dir.path(), special_storage_policy_, NULL, task_runner_);
test_path = idb_context->GetFilePathForTesting(
webkit_database::GetIdentifierFromOrigin(kTestOrigin));
@@ -187,9 +178,8 @@ TEST_F(IndexedDBTest, ForceCloseOpenDatabasesOnDelete) {
idb_context->TaskRunner()->PostTask(
FROM_HERE,
- base::Bind(&IndexedDBContextImpl::DeleteForOrigin,
- idb_context,
- kTestOrigin));
+ base::Bind(
+ &IndexedDBContextImpl::DeleteForOrigin, idb_context, kTestOrigin));
FlushIndexedDBTaskRunner();
message_loop_.RunUntilIdle();
}
« no previous file with comments | « content/browser/indexed_db/indexed_db_transaction.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698