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

Issue 10905171: Add systemInfo.cpu.onUpdated event implementation. (Closed)

Created:
8 years, 3 months ago by Hongbo Min
Modified:
8 years, 2 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add systemInfo.cpu.onUpdated event implementation (re-committed it again since the static initializer regression issue was resolved. See http://code.google.com/p/chromium/issues/detail?id=155472) BUG=136519 TEST=browser_tests --gtest_filter=SystemInfoCpuApiTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161499 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161742

Patch Set 1 : #

Total comments: 19

Patch Set 2 : #

Total comments: 26

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Use APP_TERMINATING to stop timer #

Total comments: 6

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : for android build #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -52 lines) Patch
M chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.h View 1 2 3 4 5 6 2 chunks +52 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc View 1 2 3 4 5 3 chunks +113 lines, -6 lines 0 comments Download
A + chrome/browser/extensions/api/system_info_cpu/cpu_info_provider_android.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/system_info_cpu/system_info_cpu_apitest.cc View 1 2 3 4 4 chunks +33 lines, -6 lines 0 comments Download
M chrome/browser/extensions/event_names.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/event_names.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/system_info_event_router.h View 1 2 3 2 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/extensions/system_info_event_router.cc View 1 4 chunks +39 lines, -5 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/experimental_system_info_cpu.idl View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/systeminfo/cpu/manifest.json View 1 1 chunk +1 line, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/systeminfo/cpu/test_cpu_api.js View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
D chrome/test/data/extensions/api_test/systeminfo/cpu/test_cpuinfo_api.js View 1 chunk +0 lines, -21 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
Hongbo Min
Pls have a reivew.
8 years, 3 months ago (2012-09-11 11:29:43 UTC) #1
Hongbo Min
8 years, 3 months ago (2012-09-11 23:57:33 UTC) #2
Hongbo Min
mihai, could you please review it?
8 years, 3 months ago (2012-09-13 00:00:59 UTC) #3
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10905171/diff/4001/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc File chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc (right): http://codereview.chromium.org/10905171/diff/4001/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc#newcode26 chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc:26: DCHECK(!sampling_timer_) << "Fogot to call StopSampling?"; "StartSampling call without ...
8 years, 3 months ago (2012-09-16 06:23:05 UTC) #4
Hongbo Min
mihai, thanks for your review. The path is updated per your comments. http://codereview.chromium.org/10905171/diff/4001/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.h File chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.h ...
8 years, 3 months ago (2012-09-16 14:07:49 UTC) #5
Hongbo Min
benwells@ One more patch needs your review. Thanks.
8 years, 3 months ago (2012-09-20 10:12:54 UTC) #6
benwells
http://codereview.chromium.org/10905171/diff/2002/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc File chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc (right): http://codereview.chromium.org/10905171/diff/2002/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc#newcode27 chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc:27: BrowserThread::DeleteSoon(BrowserThread::FILE, FROM_HERE, sampling_timer_); This feels racy. Can the timer ...
8 years, 3 months ago (2012-09-21 08:19:50 UTC) #7
Hongbo Min
Minor changes. Thanks for your review. A question is, for all SystemInfoProvider subclasses, is it ...
8 years, 3 months ago (2012-09-21 09:00:23 UTC) #8
benwells
http://codereview.chromium.org/10905171/diff/2002/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc File chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc (right): http://codereview.chromium.org/10905171/diff/2002/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc#newcode27 chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc:27: BrowserThread::DeleteSoon(BrowserThread::FILE, FROM_HERE, sampling_timer_); On 2012/09/21 09:00:23, Hongbo Min wrote: ...
8 years, 2 months ago (2012-09-25 17:32:13 UTC) #9
Hongbo Min
> chrome/browser/extensions/system_info_event_router.h:60: // The callback for CPU > sampling cycle. Can be called from any ...
8 years, 2 months ago (2012-09-26 15:06:59 UTC) #10
Hongbo Min
The patch is updated according to your comments, see the Patch Set 4. Thanks.
8 years, 2 months ago (2012-09-26 15:07:32 UTC) #11
benwells
On 2012/09/26 15:07:32, Hongbo Min wrote: > The patch is updated according to your comments, ...
8 years, 2 months ago (2012-09-27 00:30:52 UTC) #12
Hongbo Min
On 2012/09/27 00:30:52, benwells wrote: > On 2012/09/26 15:07:32, Hongbo Min wrote: > > The ...
8 years, 2 months ago (2012-10-03 13:47:52 UTC) #13
benwells
Getting close... http://codereview.chromium.org/10905171/diff/36001/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc File chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc (right): http://codereview.chromium.org/10905171/diff/36001/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc#newcode71 chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc:71: const content::NotificationSource& source, Nit: fix indenting here. ...
8 years, 2 months ago (2012-10-04 06:58:59 UTC) #14
Hongbo Min
http://codereview.chromium.org/10905171/diff/36001/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc File chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc (right): http://codereview.chromium.org/10905171/diff/36001/chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc#newcode71 chrome/browser/extensions/api/system_info_cpu/cpu_info_provider.cc:71: const content::NotificationSource& source, On 2012/10/04 06:58:59, benwells wrote: > ...
8 years, 2 months ago (2012-10-05 02:40:56 UTC) #15
benwells
lgtm
8 years, 2 months ago (2012-10-08 05:38:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/10905171/46001
8 years, 2 months ago (2012-10-09 00:18:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/10905171/52004
8 years, 2 months ago (2012-10-09 00:39:43 UTC) #18
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 2 months ago (2012-10-09 01:07:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/10905171/64001
8 years, 2 months ago (2012-10-09 01:42:19 UTC) #20
commit-bot: I haz the power
Presubmit check for 10905171-64001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-09 01:42:27 UTC) #21
Hongbo Min
thakis@, need your lgtm for gypi changes. The change is for android build since cpu_info_provider.cc ...
8 years, 2 months ago (2012-10-09 01:50:43 UTC) #22
Hongbo Min
On 2012/10/09 01:50:43, Hongbo Min wrote: > thakis@, need your lgtm for gypi changes. > ...
8 years, 2 months ago (2012-10-10 11:58:01 UTC) #23
Hongbo Min
brettw@, could you pls help review it? Thanks
8 years, 2 months ago (2012-10-10 23:22:45 UTC) #24
brettw
chrome/chrome_browser_extensions.gypi LGTM (this is all you needed me to look at, right?).
8 years, 2 months ago (2012-10-11 21:22:43 UTC) #25
Hongbo Min
On 2012/10/11 21:22:43, brettw wrote: > chrome/chrome_browser_extensions.gypi LGTM (this is all you needed me to ...
8 years, 2 months ago (2012-10-11 23:46:34 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/10905171/64001
8 years, 2 months ago (2012-10-11 23:47:09 UTC) #27
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 2 months ago (2012-10-12 00:18:59 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/10905171/66003
8 years, 2 months ago (2012-10-12 01:16:08 UTC) #29
commit-bot: I haz the power
Change committed as 161499
8 years, 2 months ago (2012-10-12 04:15:44 UTC) #30
falken
On 2012/10/12 04:15:44, I haz the power (commit-bot) wrote: > Change committed as 161499 I'm ...
8 years, 2 months ago (2012-10-12 05:24:11 UTC) #31
Hongbo Min
On 2012/10/12 05:24:11, falken wrote: > On 2012/10/12 04:15:44, I haz the power (commit-bot) wrote: ...
8 years, 2 months ago (2012-10-12 05:50:30 UTC) #32
Hongbo Min
On 2012/10/12 05:50:30, Hongbo Min wrote: > On 2012/10/12 05:24:11, falken wrote: > > On ...
8 years, 2 months ago (2012-10-12 05:55:49 UTC) #33
Hongbo Min
On 2012/10/12 05:55:49, Hongbo Min wrote: > On 2012/10/12 05:50:30, Hongbo Min wrote: > > ...
8 years, 2 months ago (2012-10-13 00:11:54 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/10905171/66003
8 years, 2 months ago (2012-10-13 06:43:59 UTC) #35
commit-bot: I haz the power
Change committed as 161742
8 years, 2 months ago (2012-10-13 06:44:24 UTC) #36
Nico
8 years, 2 months ago (2012-10-15 15:20:41 UTC) #37
On 2012/10/10 11:58:01, Hongbo Min wrote:
> On 2012/10/09 01:50:43, Hongbo Min wrote:
> > thakis@, need your lgtm for gypi changes.
> > 
> > The change is for android build since cpu_info_provider.cc is needed for
> > linking.
> ping thakis@

lgtm. Sorry for the delay, I was on vacation.

Powered by Google App Engine
This is Rietveld 408576698