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

Unified Diff: content/browser/indexed_db/indexed_db_quota_client_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
Index: content/browser/indexed_db/indexed_db_quota_client_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_quota_client_unittest.cc b/content/browser/indexed_db/indexed_db_quota_client_unittest.cc
index 9ec3951e5b2055f8ca7615b076abec2c9ad8d3cd..91264383065849d38a2fdddc62af408ae1bb6c6c 100644
--- a/content/browser/indexed_db/indexed_db_quota_client_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_quota_client_unittest.cc
@@ -47,22 +47,20 @@ class IndexedDBQuotaClientTest : public testing::Test {
new quota::MockQuotaManager(
false /*in_memory*/,
browser_context_->GetPath(),
- base::MessageLoop::current()->message_loop_proxy().get(),
- base::MessageLoop::current()->message_loop_proxy().get(),
+ base::MessageLoop::current()->message_loop_proxy(),
+ base::MessageLoop::current()->message_loop_proxy(),
browser_context_->GetSpecialStoragePolicy());
idb_context_ =
new IndexedDBContextImpl(browser_context_->GetPath(),
browser_context_->GetSpecialStoragePolicy(),
quota_manager->proxy(),
- task_runner_.get());
+ task_runner_);
base::MessageLoop::current()->RunUntilIdle();
setup_temp_dir();
}
- void FlushIndexedDBTaskRunner() {
- task_runner_->RunUntilIdle();
- }
+ void FlushIndexedDBTaskRunner() { task_runner_->RunUntilIdle(); }
void setup_temp_dir() {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
@@ -133,7 +131,7 @@ class IndexedDBQuotaClientTest : public testing::Test {
return delete_status_;
}
- IndexedDBContextImpl* idb_context() { return idb_context_.get(); }
+ IndexedDBContextImpl* idb_context() { return idb_context_; }
void SetFileSizeTo(const base::FilePath& path, int size) {
std::string junk(size, 'a');
« no previous file with comments | « content/browser/indexed_db/indexed_db_quota_client.cc ('k') | content/browser/indexed_db/indexed_db_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698