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

Issue 343001: Move various runtime enabled experiments into a WebExperiments class.... (Closed)

Created:
11 years, 1 month ago by darin (slow to review)
Modified:
9 years, 7 months ago
Reviewers:
jorlow
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, fbarchard, Alpha Left Google, jam, pam+watch_chromium.org, awong, scherkus (not reviewing)
Visibility:
Public.

Description

Move various runtime enabled features into a WebRuntimeFeatures class. There are separate functions to set/test each feature. R=jorlow BUG=25286 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30564

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -61 lines) Patch
M chrome/renderer/render_thread.cc View 1 3 chunks +8 lines, -6 lines 0 comments Download
M webkit/api/public/WebKit.h View 1 1 chunk +0 lines, -11 lines 0 comments Download
A webkit/api/public/WebRuntimeFeatures.h View 1 chunk +65 lines, -0 lines 0 comments Download
M webkit/api/src/WebKit.cpp View 1 2 chunks +0 lines, -37 lines 0 comments Download
M webkit/api/src/WebMediaPlayerClientImpl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M webkit/api/src/WebMediaPlayerClientImpl.cpp View 1 1 chunk +5 lines, -0 lines 2 comments Download
A webkit/api/src/WebRuntimeFeatures.cpp View 1 chunk +122 lines, -0 lines 3 comments Download
M webkit/glue/webpreferences.cc View 1 3 chunks +4 lines, -1 line 0 comments Download
M webkit/tools/test_shell/test_shell_webkit_init.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
M webkit/webkit.gyp View 3 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
darin (slow to review)
11 years, 1 month ago (2009-10-27 18:28:40 UTC) #1
jorlow
LGTM. Let me know what you think about passing in a boolean to say whether ...
11 years, 1 month ago (2009-10-27 18:42:36 UTC) #2
darin (slow to review)
11 years, 1 month ago (2009-10-30 05:44:12 UTC) #3
darin (slow to review)
I decided to take a departure from the original design. Now, I'm going with something ...
11 years, 1 month ago (2009-10-30 05:52:45 UTC) #4
jorlow
Will these functions ever go away? Maybe if they've been deprecated for a sufficient amount ...
11 years, 1 month ago (2009-10-30 06:19:06 UTC) #5
darin (slow to review)
I was thinking we might at some point mark some of these as deprecated, and ...
11 years, 1 month ago (2009-10-30 06:38:25 UTC) #6
jorlow
11 years, 1 month ago (2009-10-30 07:08:02 UTC) #7
http://codereview.chromium.org/343001/diff/5001/2010
File webkit/api/src/WebRuntimeFeatures.cpp (right):

http://codereview.chromium.org/343001/diff/5001/2010#newcode42
Line 42: void WebRuntimeFeatures::enableDatabase(bool enable)
On 2009/10/30 06:38:25, darin wrote:
> On 2009/10/30 06:19:06, Jeremy Orlow wrote:
> > What's the plan when these are enabled by default?  Would the embedder need
to
> > try setting it and then poll?  Maybe it should return a boolean for whether
or
> > not it was successfully set?
> 
> I just did what you suggested earlier.  The embedder always calls enableFoo
with
> the value it wants.  So, the defaults don't matter.
> 
> However, if we want to remove the code that calls enableFoo, then
> we would probably do that once we know for sure that the feature is
> enabled by default, or we would just always have code to call enableFoo(true).
> 
> The defaults do matter when the embedder doesn't call enableBar, which might
> happen when you mix an old Chrome with a newer WebKit.  I'm okay with the
> default floating like that.

I imagined that the WebCore side of the runtime features would outlive the
WebKit API side of them...especially when more than just Chrome is using the
Chromium API.

I think you should commit this as is, but that we should think this through more
before we commit to it for the long term.

Powered by Google App Engine
This is Rietveld 408576698