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

Issue 262723002: Implement navigator.hardwareConcurrency (Closed)

Created:
6 years, 7 months ago by abarth-chromium
Modified:
6 years, 6 months ago
CC:
esprehn, arv+blink, blink-reviews, Inactive, falken, horo+watch_chromium.org, kinuko+watch, watchdog-blink-watchlist_google.com
Visibility:
Public.

Description

Implement navigator.hardwareConcurrency This CL implements a |hardwareConcurrency| property on the |navigator| object that returns the number of CPU cores the machine has. Intent-to-ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/xwl0ab20hVc R=esprehn@chromium.org BUG=369629 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175629

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename to navigator.hardwareConcurrency #

Total comments: 7

Patch Set 3 : Address reviewer comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -2 lines) Patch
A LayoutTests/fast/cpu/hardware-concurrency.html View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A LayoutTests/fast/cpu/hardware-concurrency-expected.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-navigated-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-and-gced-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-properties-after-frame-removed-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-navigated-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-and-gced-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/fast/dom/Window/resources/window-property-collector.js View 1 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/fast/workers/resources/worker-navigator-hardware-concurrency.js View 1 1 chunk +10 lines, -0 lines 0 comments Download
A LayoutTests/fast/workers/worker-navigator-hardware-concurrency.html View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/fast/workers/worker-navigator-hardware-concurrency-expected.txt View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/frame/Navigator.h View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M Source/core/frame/Navigator.idl View 1 chunk +1 line, -0 lines 0 comments Download
A Source/core/frame/NavigatorCPU.h View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A Source/core/frame/NavigatorCPU.cpp View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A Source/core/frame/NavigatorCPU.idl View 1 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/workers/WorkerNavigator.h View 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/workers/WorkerNavigator.idl View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
abarth-chromium
6 years, 7 months ago (2014-04-30 22:03:34 UTC) #1
Rik
These changes look reasonable. FYI I landed this attribute in WebKit too. https://codereview.chromium.org/262723002/diff/1/Source/core/frame/NavigatorCPU.cpp File Source/core/frame/NavigatorCPU.cpp ...
6 years, 7 months ago (2014-05-18 23:18:30 UTC) #2
Daniel Bratell
https://codereview.chromium.org/262723002/diff/1/Source/core/frame/NavigatorCPU.idl File Source/core/frame/NavigatorCPU.idl (right): https://codereview.chromium.org/262723002/diff/1/Source/core/frame/NavigatorCPU.idl#newcode7 Source/core/frame/NavigatorCPU.idl:7: ] interface NavigatorCPU { On 2014/05/18 23:18:30, Rik wrote: ...
6 years, 7 months ago (2014-05-22 12:56:21 UTC) #3
Rik
https://codereview.chromium.org/262723002/diff/1/Source/core/frame/NavigatorCPU.idl File Source/core/frame/NavigatorCPU.idl (right): https://codereview.chromium.org/262723002/diff/1/Source/core/frame/NavigatorCPU.idl#newcode7 Source/core/frame/NavigatorCPU.idl:7: ] interface NavigatorCPU { On 2014/05/22 12:56:22, Daniel Bratell ...
6 years, 7 months ago (2014-05-22 13:41:53 UTC) #4
abarth-chromium
@esprehn: This is ready for review. Thanks!
6 years, 6 months ago (2014-06-04 06:01:12 UTC) #5
eseidel
lgtm https://codereview.chromium.org/262723002/diff/20001/Source/core/frame/Navigator.h File Source/core/frame/Navigator.h (right): https://codereview.chromium.org/262723002/diff/20001/Source/core/frame/Navigator.h#newcode45 Source/core/frame/Navigator.h:45: class Navigator FINAL : public RefCountedWillBeGarbageCollectedFinalized<Navigator>, public NavigatorCPU, ...
6 years, 6 months ago (2014-06-04 06:19:54 UTC) #6
esprehn
lgtm, couple nits before landing. https://codereview.chromium.org/262723002/diff/20001/LayoutTests/fast/cpu/hardware-concurrency.html File LayoutTests/fast/cpu/hardware-concurrency.html (right): https://codereview.chromium.org/262723002/diff/20001/LayoutTests/fast/cpu/hardware-concurrency.html#newcode1 LayoutTests/fast/cpu/hardware-concurrency.html:1: <script> Add a doctype. ...
6 years, 6 months ago (2014-06-05 01:06:52 UTC) #7
abarth-chromium
On 2014/06/05 01:06:52, esprehn wrote: > https://codereview.chromium.org/262723002/diff/20001/LayoutTests/fast/workers/worker-navigator-hardware-concurrency.html#newcode4 > LayoutTests/fast/workers/worker-navigator-hardware-concurrency.html:4: <pre > id='console'></pre> > You don't ...
6 years, 6 months ago (2014-06-05 04:46:42 UTC) #8
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 6 months ago (2014-06-05 04:59:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/262723002/40001
6 years, 6 months ago (2014-06-05 05:00:44 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-05 06:15:05 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 07:11:22 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/10730)
6 years, 6 months ago (2014-06-05 07:11:22 UTC) #13
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 6 months ago (2014-06-05 21:27:41 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/262723002/40001
6 years, 6 months ago (2014-06-05 21:27:56 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-05 22:25:41 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 23:57:30 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/10853)
6 years, 6 months ago (2014-06-05 23:57:31 UTC) #18
abarth-chromium
The CQ bit was checked by abarth@chromium.org
6 years, 6 months ago (2014-06-06 00:52:58 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/262723002/40001
6 years, 6 months ago (2014-06-06 00:53:46 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-06 01:57:14 UTC) #21
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 03:20:59 UTC) #22
Message was sent while issue was closed.
Change committed as 175629

Powered by Google App Engine
This is Rietveld 408576698