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

Issue 8772031: Add a JS API for detecting WebGL availability. (Closed)

Created:
9 years ago by Zhenyao Mo
Modified:
9 years ago
CC:
chromium-reviews, Erik does not do reviews, jam, mihaip+watch_chromium.org, apatrick_chromium, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add a JS API for detecting WebGL availability. Move GpuInfoUpdate to UI thread to avoid potential racing. BUG=104768 TEST=ExtensionWebstorePrivateBundleTest.GetWebGLStatus Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113688

Patch Set 1 : '' #

Total comments: 3

Patch Set 2 : '' #

Total comments: 13

Patch Set 3 : '' #

Total comments: 11

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -29 lines) Patch
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_webstore_private_api.h View 1 2 3 2 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_webstore_private_api.cc View 1 2 3 1 chunk +63 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_webstore_private_apitest.cc View 1 2 3 4 4 chunks +70 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_data_manager.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_data_manager.cc View 1 6 chunks +14 lines, -18 lines 0 comments Download
M content/browser/gpu/gpu_process_host.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 chunks +0 lines, -10 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 1 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Zhenyao Mo
Ken, can you review the GpuDataManager part? Mihai, can you review the extension API part? ...
9 years ago (2011-12-02 19:50:44 UTC) #1
Ken Russell (switch to Gerrit)
http://codereview.chromium.org/8772031/diff/5008/chrome/browser/extensions/extension_webstore_private_api.cc File chrome/browser/extensions/extension_webstore_private_api.cc (right): http://codereview.chromium.org/8772031/diff/5008/chrome/browser/extensions/extension_webstore_private_api.cc#newcode542 chrome/browser/extensions/extension_webstore_private_api.cc:542: manager->AddObserver(this); I don't fully understand the multithreading in this ...
9 years ago (2011-12-03 02:59:41 UTC) #2
Aaron Boodman
Is this supposed to be available to all web pages? or just app pages? Because ...
9 years ago (2011-12-03 04:40:34 UTC) #3
Zhenyao Mo
On 2011/12/03 04:40:34, Aaron Boodman wrote: > Is this supposed to be available to all ...
9 years ago (2011-12-03 07:13:18 UTC) #4
Zhenyao Mo
http://codereview.chromium.org/8772031/diff/5008/chrome/browser/extensions/extension_webstore_private_api.cc File chrome/browser/extensions/extension_webstore_private_api.cc (right): http://codereview.chromium.org/8772031/diff/5008/chrome/browser/extensions/extension_webstore_private_api.cc#newcode542 chrome/browser/extensions/extension_webstore_private_api.cc:542: manager->AddObserver(this); On 2011/12/03 02:59:42, kbr wrote: > I don't ...
9 years ago (2011-12-03 07:13:27 UTC) #5
Zhenyao Mo
Addressed the potential racing issue by moving everything to UI thread. The webstore api is ...
9 years ago (2011-12-05 23:45:25 UTC) #6
Mihai Parparita -not on Chrome
On Fri, Dec 2, 2011 at 11:13 PM, <zmo@chromium.org> wrote: > On 2011/12/03 04:40:34, Aaron ...
9 years ago (2011-12-06 02:41:54 UTC) #7
Mihai Parparita -not on Chrome
http://codereview.chromium.org/8772031/diff/12022/chrome/browser/extensions/extension_webstore_private_api.cc File chrome/browser/extensions/extension_webstore_private_api.cc (right): http://codereview.chromium.org/8772031/diff/12022/chrome/browser/extensions/extension_webstore_private_api.cc#newcode515 chrome/browser/extensions/extension_webstore_private_api.cc:515: result_.reset(Value::CreateStringValue( Rather than repeating the result creation code twice, ...
9 years ago (2011-12-06 02:58:11 UTC) #8
Zhenyao Mo
http://codereview.chromium.org/8772031/diff/12022/chrome/browser/extensions/extension_webstore_private_api.cc File chrome/browser/extensions/extension_webstore_private_api.cc (right): http://codereview.chromium.org/8772031/diff/12022/chrome/browser/extensions/extension_webstore_private_api.cc#newcode515 chrome/browser/extensions/extension_webstore_private_api.cc:515: result_.reset(Value::CreateStringValue( On 2011/12/06 02:58:11, Mihai Parparita wrote: > Rather ...
9 years ago (2011-12-06 20:00:15 UTC) #9
Zhenyao Mo
http://codereview.chromium.org/8772031/diff/12022/chrome/browser/extensions/extension_webstore_private_apitest.cc File chrome/browser/extensions/extension_webstore_private_apitest.cc (right): http://codereview.chromium.org/8772031/diff/12022/chrome/browser/extensions/extension_webstore_private_apitest.cc#newcode247 chrome/browser/extensions/extension_webstore_private_apitest.cc:247: RunPageTest(GetTestServerURL("get_webgl_status_allowed.html").spec())); On 2011/12/06 20:00:15, Zhenyao Mo wrote: > On ...
9 years ago (2011-12-06 20:19:57 UTC) #10
Ken Russell (switch to Gerrit)
LGTM to me overall. One question related to the tests, but the GpuDataManager side looks ...
9 years ago (2011-12-06 22:42:04 UTC) #11
Zhenyao Mo
On 2011/12/06 22:42:04, kbr wrote: > LGTM to me overall. One question related to the ...
9 years ago (2011-12-06 22:43:27 UTC) #12
Mihai Parparita -not on Chrome
http://codereview.chromium.org/8772031/diff/24014/chrome/browser/extensions/extension_webstore_private_api.cc File chrome/browser/extensions/extension_webstore_private_api.cc (right): http://codereview.chromium.org/8772031/diff/24014/chrome/browser/extensions/extension_webstore_private_api.cc#newcode529 chrome/browser/extensions/extension_webstore_private_api.cc:529: #if defined(OS_LINUX) Can you comment why Linux gets this ...
9 years ago (2011-12-07 00:01:38 UTC) #13
Zhenyao Mo
http://codereview.chromium.org/8772031/diff/24014/chrome/browser/extensions/extension_webstore_private_api.cc File chrome/browser/extensions/extension_webstore_private_api.cc (right): http://codereview.chromium.org/8772031/diff/24014/chrome/browser/extensions/extension_webstore_private_api.cc#newcode529 chrome/browser/extensions/extension_webstore_private_api.cc:529: #if defined(OS_LINUX) On 2011/12/07 00:01:38, Mihai Parparita wrote: > ...
9 years ago (2011-12-07 17:26:49 UTC) #14
Zhenyao Mo
Ping: Mihai, the bots are all green, please have another look.
9 years ago (2011-12-08 19:21:43 UTC) #15
Mihai Parparita -not on Chrome
9 years ago (2011-12-08 22:30:40 UTC) #16
LGTM

http://codereview.chromium.org/8772031/diff/29001/chrome/browser/extensions/e...
File chrome/browser/extensions/extension_webstore_private_apitest.cc (right):

http://codereview.chromium.org/8772031/diff/29001/chrome/browser/extensions/e...
chrome/browser/extensions/extension_webstore_private_apitest.cc:96: // In linux,
we need to launch GPU process to decide if WebGL is allowed.
This can be removed, since you're no longer testing GPU functionality with 
ExtensionWebstorePrivateApiTest.

Powered by Google App Engine
This is Rietveld 408576698