|
|
IndexedDB: WrapUnique(new T(args...)) -> MakeUnique<T>(args...)
Get on the base::MakeUnique bandwagon, both replacing
bad uses of WrapUnique and eliminating bare `new` invocations
Also change several factory methods to return unique_ptr or
scoped_refptr instead of raw pointers, and replace some
manually managed pointers in maps with smart pointers.
WrapUnique() is used in cases with private constructors.
R=cmumford@chromium.org
Committed: https://crrev.com/7017da4baf8aff83269ab72a34737143c6d9d96b
Cr-Commit-Position: refs/heads/master@{#412222}
Total comments: 1
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+214 lines, -179 lines) |
Patch |
 |
M |
content/browser/indexed_db/indexed_db_active_blob_registry_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_backing_store.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_backing_store.cc
|
View
|
1
2
|
14 chunks |
+29 lines, -16 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_backing_store_unittest.cc
|
View
|
1
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_class_factory.h
|
View
|
1
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_class_factory.cc
|
View
|
1
|
3 chunks |
+11 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_context_impl.cc
|
View
|
1
|
5 chunks |
+14 lines, -9 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_cursor.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_database.h
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_database.cc
|
View
|
1
2
|
5 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_database_unittest.cc
|
View
|
1
|
6 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_dispatcher_host.cc
|
View
|
1
2
|
11 chunks |
+16 lines, -20 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_factory_unittest.cc
|
View
|
1
|
15 chunks |
+39 lines, -38 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_index_writer.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_leveldb_coding.cc
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_transaction.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_transaction_unittest.cc
|
View
|
1
|
7 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/indexed_db_unittest.cc
|
View
|
1
|
3 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/leveldb/leveldb_database.cc
|
View
|
1
|
7 chunks |
+14 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/leveldb/leveldb_transaction.h
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/leveldb/leveldb_transaction.cc
|
View
|
1
2
|
4 chunks |
+4 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/list_set_unittest.cc
|
View
|
1
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.h
|
View
|
1
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/browser/indexed_db/mock_browsertest_indexed_db_class_factory.cc
|
View
|
1
|
4 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 28 (18 generated)
|