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

Issue 10831353: Add a generic template for system info provider (Closed)

Created:
8 years, 4 months ago by Hongbo Min
Modified:
8 years, 4 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 a generic template for system info provider and also provides mock cpu info provider based on it. BUG=136519 TEST=browser_tests --gtest_filter=SystemInfoCpuApiTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152950

Patch Set 1 : Simplify the SystemInfoProvider template code #

Total comments: 20

Patch Set 2 : Updated patch #

Patch Set 3 : Expose QueryInfo interface publicly #

Total comments: 11

Patch Set 4 : Code polishment #

Messages

Total messages: 23 (0 generated)
Hongbo Min
Hi, reviewers, This patch is to add a generic template for system information. I found ...
8 years, 4 months ago (2012-08-16 13:36:25 UTC) #1
Nico
The gypi changes lgtm. James is on vacation as far as I know, so it ...
8 years, 4 months ago (2012-08-16 14:58:06 UTC) #2
Hongbo Min
On 2012/08/16 14:58:06, Nico wrote: > The gypi changes lgtm. James is on vacation as ...
8 years, 4 months ago (2012-08-16 23:29:34 UTC) #3
Nico
On Thu, Aug 16, 2012 at 4:29 PM, <hongbo.min@intel.com> wrote: > On 2012/08/16 14:58:06, Nico ...
8 years, 4 months ago (2012-08-16 23:47:15 UTC) #4
Hongbo Min
On 2012/08/16 23:47:15, Nico wrote: > On Thu, Aug 16, 2012 at 4:29 PM, <mailto:hongbo.min@intel.com> ...
8 years, 4 months ago (2012-08-17 15:29:50 UTC) #5
Hongbo Min
On 2012/08/16 13:36:25, Hongbo wrote: > Hi, reviewers, > > This patch is to add ...
8 years, 4 months ago (2012-08-17 15:34:09 UTC) #6
Mihai Parparita -not on Chrome
This generally seems fine, but how expensive do you envision it being to have these ...
8 years, 4 months ago (2012-08-17 23:40:30 UTC) #7
Hongbo Min
On 2012/08/17 23:40:30, Mihai Parparita wrote: > This generally seems fine, but how expensive do ...
8 years, 4 months ago (2012-08-18 01:02:28 UTC) #8
Hongbo Min
Thanks for your comments. I have updated the patch. The single shared SystemInfoProvider instance is ...
8 years, 4 months ago (2012-08-18 12:31:09 UTC) #9
Hongbo Min
Sorry, I deleted the origin patch set by mistake. Is there any way to restore ...
8 years, 4 months ago (2012-08-18 14:33:24 UTC) #10
Hongbo Min
8 years, 4 months ago (2012-08-20 23:33:45 UTC) #11
Mihai Parparita -not on Chrome
Thanks for the simplification, I think this is getting closer to landing. http://codereview.chromium.org/10831353/diff/1027/chrome/browser/extensions/api/system_info_cpu/system_info_cpu_api.cc File chrome/browser/extensions/api/system_info_cpu/system_info_cpu_api.cc ...
8 years, 4 months ago (2012-08-21 01:14:52 UTC) #12
Hongbo
Will update it later. Thanks. http://codereview.chromium.org/10831353/diff/1027/chrome/browser/extensions/system_info_provider.h File chrome/browser/extensions/system_info_provider.h (right): http://codereview.chromium.org/10831353/diff/1027/chrome/browser/extensions/system_info_provider.h#newcode155 chrome/browser/extensions/system_info_provider.h:155: typename base::LazyInstance<scoped_ptr<SystemInfoProvider<T> > > ...
8 years, 4 months ago (2012-08-21 01:29:37 UTC) #13
Hongbo Min
The patch is now updated. http://codereview.chromium.org/10831353/diff/1027/chrome/browser/extensions/api/system_info_cpu/system_info_cpu_api.cc File chrome/browser/extensions/api/system_info_cpu/system_info_cpu_api.cc (right): http://codereview.chromium.org/10831353/diff/1027/chrome/browser/extensions/api/system_info_cpu/system_info_cpu_api.cc#newcode30 chrome/browser/extensions/api/system_info_cpu/system_info_cpu_api.cc:30: SetError("Error occurs when querying ...
8 years, 4 months ago (2012-08-21 03:07:10 UTC) #14
Hongbo Min
http://codereview.chromium.org/10831353/diff/1027/chrome/browser/extensions/system_info_provider.h File chrome/browser/extensions/system_info_provider.h (right): http://codereview.chromium.org/10831353/diff/1027/chrome/browser/extensions/system_info_provider.h#newcode131 chrome/browser/extensions/system_info_provider.h:131: // an argument for base::Bind. On 2012/08/21 03:07:11, Hongbo ...
8 years, 4 months ago (2012-08-21 05:16:39 UTC) #15
Hongbo Min
Some updates. Pls review it. Thanks. http://codereview.chromium.org/10831353/diff/18001/chrome/browser/extensions/system_info_provider.h File chrome/browser/extensions/system_info_provider.h (right): http://codereview.chromium.org/10831353/diff/18001/chrome/browser/extensions/system_info_provider.h#newcode62 chrome/browser/extensions/system_info_provider.h:62: virtual void StartQueryInfo(const ...
8 years, 4 months ago (2012-08-22 08:05:59 UTC) #16
Hongbo Min
Mihai, Together with issue http://codereview.chromium.org/10836341/, both of these two patches provide a general framework for ...
8 years, 4 months ago (2012-08-22 14:14:17 UTC) #17
Mihai Parparita -not on Chrome
LGTM http://codereview.chromium.org/10831353/diff/18001/chrome/browser/extensions/system_info_provider.h File chrome/browser/extensions/system_info_provider.h (right): http://codereview.chromium.org/10831353/diff/18001/chrome/browser/extensions/system_info_provider.h#newcode18 chrome/browser/extensions/system_info_provider.h:18: // A generic template for all kinds of ...
8 years, 4 months ago (2012-08-23 00:24:52 UTC) #18
Mihai Parparita -not on Chrome
On Wed, Aug 22, 2012 at 7:14 AM, <hongbo.min@intel.com> wrote: > Regarding to system info ...
8 years, 4 months ago (2012-08-23 00:31:46 UTC) #19
Hongbo Min
http://codereview.chromium.org/10831353/diff/18001/chrome/browser/extensions/system_info_provider.h File chrome/browser/extensions/system_info_provider.h (right): http://codereview.chromium.org/10831353/diff/18001/chrome/browser/extensions/system_info_provider.h#newcode92 chrome/browser/extensions/system_info_provider.h:92: virtual void QueryOnWorkerPool() { On 2012/08/23 00:24:52, Mihai Parparita ...
8 years, 4 months ago (2012-08-23 00:35:40 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/10831353/22003
8 years, 4 months ago (2012-08-23 01:57:11 UTC) #21
Hongbo Min
On 2012/08/23 00:31:46, Mihai Parparita wrote: > On Wed, Aug 22, 2012 at 7:14 AM, ...
8 years, 4 months ago (2012-08-23 02:05:06 UTC) #22
commit-bot: I haz the power
8 years, 4 months ago (2012-08-23 04:29:05 UTC) #23
Change committed as 152950

Powered by Google App Engine
This is Rietveld 408576698