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

Issue 11946027: Instantiate the WebIDBFactoryImpl lazily, and call setIDBFactory (Closed)

Created:
7 years, 11 months ago by darin (slow to review)
Modified:
7 years, 11 months ago
Reviewers:
jsbell
CC:
chromium-reviews, darin-cc_chromium.org, dgrogan, alecflett
Visibility:
Public.

Description

Instantiate the WebIDBFactoryImpl lazily, and call setIDBFactory again between tests. Introduces a ResetTestEnvironment method to webkit_support, which is intended to be called by DRT's TestShell::resetTestController method. ResetTestEnvironment subsumes the Android-specific ReleaseMediaResources method. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177629

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -5 lines) Patch
M webkit/support/test_webkit_platform_support.cc View 4 chunks +15 lines, -5 lines 0 comments Download
M webkit/support/webkit_support.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/support/webkit_support.cc View 1 2 3 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
darin (slow to review)
Here's the corresponding WebKit patch, which I should really upload to bugzilla: Index: chromium/TestShell.cpp =================================================================== ...
7 years, 11 months ago (2013-01-16 23:10:37 UTC) #1
jsbell
+dgrogan, alecflett
7 years, 11 months ago (2013-01-16 23:12:17 UTC) #2
jsbell
lgtm https://codereview.chromium.org/11946027/diff/1/webkit/support/test_webkit_platform_support.cc File webkit/support/test_webkit_platform_support.cc (right): https://codereview.chromium.org/11946027/diff/1/webkit/support/test_webkit_platform_support.cc#newcode399 webkit/support/test_webkit_platform_support.cc:399: factory_.reset(WebKit::WebIDBFactory::create()); I don't know if this is plausible, ...
7 years, 11 months ago (2013-01-16 23:19:28 UTC) #3
darin (slow to review)
On 2013/01/16 23:19:28, jsbell wrote: > lgtm > > https://codereview.chromium.org/11946027/diff/1/webkit/support/test_webkit_platform_support.cc > File webkit/support/test_webkit_platform_support.cc (right): > ...
7 years, 11 months ago (2013-01-17 00:01:54 UTC) #4
jsbell
I'd just put a TODO in about the leak, referencing a bug with more context.
7 years, 11 months ago (2013-01-17 00:05:26 UTC) #5
darin (slow to review)
Yeah... the existing code has the same leak. On Wed, Jan 16, 2013 at 4:05 ...
7 years, 11 months ago (2013-01-17 00:35:54 UTC) #6
pilgrim_google
I think I understand this, kind of. If this lets us land the final IDB ...
7 years, 11 months ago (2013-01-17 02:03:52 UTC) #7
darin (slow to review)
@jsbell - PTAL This is step 1 of landing the patch. Note, the setIDBFactory call ...
7 years, 11 months ago (2013-01-17 16:24:29 UTC) #8
darin (slow to review)
WebKit side is here: https://bugs.webkit.org/show_bug.cgi?id=107132
7 years, 11 months ago (2013-01-17 16:31:50 UTC) #9
jsbell
lgtm
7 years, 11 months ago (2013-01-17 18:07:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/darin@chromium.org/11946027/10004
7 years, 11 months ago (2013-01-18 06:39:41 UTC) #11
commit-bot: I haz the power
7 years, 11 months ago (2013-01-18 10:03:29 UTC) #12
Message was sent while issue was closed.
Change committed as 177629

Powered by Google App Engine
This is Rietveld 408576698