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

Issue 209043008: Remove unnecesary usage of RefPtr and PassRefPtr of DatabaseContext. (Closed)

Created:
6 years, 9 months ago by tkent
Modified:
6 years, 9 months ago
CC:
blink-reviews
Visibility:
Public.

Description

Remove unnecesary usage of RefPtr and PassRefPtr of DatabaseContext. This is a preparation to move DatabaseContext to Oilpan heap. We don't need to use RefPtr/PassRefPtr of DatabaseContext for function arguments and function return value. They don't move ownership of DatabaseContext. They might be meaningful if we didn't have self->ref() in DatabaseContext::create. Also, this CL simplifies DatabaseContext::backend, and makes DatabaseManager::databaseContextFor private. BUG=347902 TEST=none; no behavior changes. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170020

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -53 lines) Patch
M Source/modules/webdatabase/AbstractDatabaseServer.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/Database.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/Database.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/DatabaseBackend.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/DatabaseBackend.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/DatabaseBackendBase.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/DatabaseBackendBase.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/DatabaseBackendSync.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/DatabaseBackendSync.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/DatabaseContext.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/DatabaseContext.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M Source/modules/webdatabase/DatabaseManager.h View 2 chunks +4 lines, -5 lines 0 comments Download
M Source/modules/webdatabase/DatabaseManager.cpp View 5 chunks +12 lines, -26 lines 7 comments Download
M Source/modules/webdatabase/DatabaseServer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/DatabaseServer.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/webdatabase/DatabaseSync.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/DatabaseSync.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
tkent
Please review this. https://codereview.chromium.org/209043008/diff/1/Source/modules/webdatabase/DatabaseManager.cpp File Source/modules/webdatabase/DatabaseManager.cpp (left): https://codereview.chromium.org/209043008/diff/1/Source/modules/webdatabase/DatabaseManager.cpp#oldcode114 Source/modules/webdatabase/DatabaseManager.cpp:114: return databaseContext.release(); This code block is ...
6 years, 9 months ago (2014-03-26 04:41:18 UTC) #1
kouhei (in TOK)
On 2014/03/26 04:41:18, tkent wrote: > Please review this. > > https://codereview.chromium.org/209043008/diff/1/Source/modules/webdatabase/DatabaseManager.cpp > File Source/modules/webdatabase/DatabaseManager.cpp ...
6 years, 9 months ago (2014-03-26 04:45:44 UTC) #2
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 9 months ago (2014-03-26 04:52:21 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/209043008/1
6 years, 9 months ago (2014-03-26 04:52:25 UTC) #4
haraken
https://codereview.chromium.org/209043008/diff/1/Source/modules/webdatabase/DatabaseManager.cpp File Source/modules/webdatabase/DatabaseManager.cpp (left): https://codereview.chromium.org/209043008/diff/1/Source/modules/webdatabase/DatabaseManager.cpp#oldcode114 Source/modules/webdatabase/DatabaseManager.cpp:114: return databaseContext.release(); On 2014/03/26 04:41:18, tkent wrote: > This ...
6 years, 9 months ago (2014-03-26 04:57:24 UTC) #5
tkent
https://codereview.chromium.org/209043008/diff/1/Source/modules/webdatabase/DatabaseManager.cpp File Source/modules/webdatabase/DatabaseManager.cpp (left): https://codereview.chromium.org/209043008/diff/1/Source/modules/webdatabase/DatabaseManager.cpp#oldcode114 Source/modules/webdatabase/DatabaseManager.cpp:114: return databaseContext.release(); On 2014/03/26 04:57:24, haraken wrote: > On ...
6 years, 9 months ago (2014-03-26 05:15:46 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-26 05:33:32 UTC) #7
commit-bot: I haz the power
List of reviewers changed. haraken@chromium.org did a drive-by without LGTM'ing!
6 years, 9 months ago (2014-03-26 05:33:32 UTC) #8
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 9 months ago (2014-03-26 05:36:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/209043008/1
6 years, 9 months ago (2014-03-26 05:36:40 UTC) #10
commit-bot: I haz the power
Change committed as 170020
6 years, 9 months ago (2014-03-26 05:37:15 UTC) #11
haraken
https://codereview.chromium.org/209043008/diff/1/Source/modules/webdatabase/DatabaseManager.cpp File Source/modules/webdatabase/DatabaseManager.cpp (left): https://codereview.chromium.org/209043008/diff/1/Source/modules/webdatabase/DatabaseManager.cpp#oldcode114 Source/modules/webdatabase/DatabaseManager.cpp:114: return databaseContext.release(); On 2014/03/26 05:15:46, tkent wrote: > On ...
6 years, 9 months ago (2014-03-26 05:37:50 UTC) #12
tkent
https://codereview.chromium.org/209043008/diff/1/Source/modules/webdatabase/DatabaseManager.cpp File Source/modules/webdatabase/DatabaseManager.cpp (left): https://codereview.chromium.org/209043008/diff/1/Source/modules/webdatabase/DatabaseManager.cpp#oldcode114 Source/modules/webdatabase/DatabaseManager.cpp:114: return databaseContext.release(); > sorry, I don't yet get it. ...
6 years, 9 months ago (2014-03-26 05:50:20 UTC) #13
haraken
On 2014/03/26 05:50:20, tkent wrote: > https://codereview.chromium.org/209043008/diff/1/Source/modules/webdatabase/DatabaseManager.cpp > File Source/modules/webdatabase/DatabaseManager.cpp (left): > > https://codereview.chromium.org/209043008/diff/1/Source/modules/webdatabase/DatabaseManager.cpp#oldcode114 > ...
6 years, 9 months ago (2014-03-26 05:55:37 UTC) #14
haraken
6 years, 9 months ago (2014-03-26 05:55:45 UTC) #15
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698