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

Issue 10836341: Add the basic code skeleton for system info event router (Closed)

Created:
8 years, 4 months ago by Hongbo Min
Modified:
8 years, 3 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 the basic code skeleton for system info event router. BUG=136519 TEST=browser_tests --gtest_filter=SystemInfoStorageApiTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154770

Patch Set 1 : #

Patch Set 2 : Add mock implementation for onAdded and onRemoved events #

Total comments: 2

Patch Set 3 : Refine the implementations for storage event. #

Patch Set 4 : Add basic code skeleton for system info event router. #

Patch Set 5 : update with using std::string.size() instead of strlen #

Total comments: 15

Patch Set 6 : #

Patch Set 7 : update per mihai's comment. #

Patch Set 8 : #

Patch Set 9 : use event router forwarder instead #

Total comments: 4

Patch Set 10 : use multiset instead and rebase to trunk #

Patch Set 11 : Polish testing code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -13 lines) Patch
M chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +58 lines, -4 lines 0 comments Download
M chrome/browser/extensions/event_names.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/event_names.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/event_router.cc View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -0 lines 0 comments Download
A chrome/browser/extensions/system_info_event_router.h View 1 2 3 4 5 6 7 8 9 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/extensions/system_info_event_router.cc View 1 2 3 4 5 6 7 8 9 1 chunk +105 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/extensions/api/experimental_system_info_storage.idl View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/systeminfo/storage/manifest.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -6 lines 0 comments Download
A chrome/test/data/extensions/api_test/systeminfo/storage/test_storage_api.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/systeminfo/storage/test_storage_api.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
Hongbo Min
This patch is to add a general SystemInfoWatcher interface to watch the system info change ...
8 years, 4 months ago (2012-08-20 15:56:45 UTC) #1
Hongbo Min
8 years, 4 months ago (2012-08-20 15:59:42 UTC) #2
Hongbo Min
8 years, 4 months ago (2012-08-20 23:33:57 UTC) #3
Hongbo Min
On 2012/08/20 23:33:57, Hongbo Min wrote: Mihai, Could you have a time to review this ...
8 years, 4 months ago (2012-08-23 00:29:19 UTC) #4
Mihai Parparita -not on Chrome
As I mentioned in the other code review, it seems like SystemInfoWatcher is very similar ...
8 years, 4 months ago (2012-08-23 00:45:52 UTC) #5
Hongbo Min
On 2012/08/23 00:45:52, Mihai Parparita wrote: > As I mentioned in the other code review, ...
8 years, 4 months ago (2012-08-23 15:06:36 UTC) #6
Hongbo Min
Mihai, The changes in the latest patch are: 1. Remove SystemInfoWatcher interface and implement the ...
8 years, 3 months ago (2012-08-27 15:08:23 UTC) #7
Mihai Parparita -not on Chrome
On Mon, Aug 27, 2012 at 8:08 AM, <hongbo.min@intel.com> wrote: > 3. Provide an implementation ...
8 years, 3 months ago (2012-08-28 01:00:11 UTC) #8
Mihai Parparita -not on Chrome
BTW, system_info_event_router.cc/h appears to have disappeared from this patch (but it's still referenced).
8 years, 3 months ago (2012-08-28 01:02:16 UTC) #9
Hongbo Min
On 2012/08/28 01:02:16, Mihai Parparita wrote: > BTW, system_info_event_router.cc/h appears to have disappeared from this ...
8 years, 3 months ago (2012-08-28 01:10:27 UTC) #10
Hongbo Min
On 2012/08/28 01:00:11, Mihai Parparita wrote: > On Mon, Aug 27, 2012 at 8:08 AM, ...
8 years, 3 months ago (2012-08-28 01:31:00 UTC) #11
Hongbo Min
Mihaip, Since it depends on the http://crbug.com/145400, this updated patch is just to provide a ...
8 years, 3 months ago (2012-08-29 10:21:41 UTC) #12
Hongbo Min
8 years, 3 months ago (2012-08-29 23:55:40 UTC) #13
Hongbo Min
On 2012/08/29 23:55:40, Hongbo Min wrote: Mihai, What is your opinion about this patch? Although ...
8 years, 3 months ago (2012-08-31 00:08:45 UTC) #14
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10836341/diff/28001/chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc File chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc (right): http://codereview.chromium.org/10836341/diff/28001/chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc#newcode18 chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc:18: const int kDefaultInterval = 200; // default interval is ...
8 years, 3 months ago (2012-08-31 01:00:59 UTC) #15
Hongbo Min
http://codereview.chromium.org/10836341/diff/28001/chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc File chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc (right): http://codereview.chromium.org/10836341/diff/28001/chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc#newcode18 chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc:18: const int kDefaultInterval = 200; // default interval is ...
8 years, 3 months ago (2012-08-31 15:29:53 UTC) #16
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10836341/diff/28001/chrome/browser/extensions/system_info_event_router.h File chrome/browser/extensions/system_info_event_router.h (right): http://codereview.chromium.org/10836341/diff/28001/chrome/browser/extensions/system_info_event_router.h#newcode48 chrome/browser/extensions/system_info_event_router.h:48: typedef std::map<Profile*, std::set<std::string> > EventListenerMap; On 2012/08/31 15:29:53, Hongbo ...
8 years, 3 months ago (2012-08-31 21:37:38 UTC) #17
Hongbo Min
On 2012/08/31 21:37:38, Mihai Parparita wrote: > http://codereview.chromium.org/10836341/diff/28001/chrome/browser/extensions/system_info_event_router.h > File chrome/browser/extensions/system_info_event_router.h (right): > > http://codereview.chromium.org/10836341/diff/28001/chrome/browser/extensions/system_info_event_router.h#newcode48 ...
8 years, 3 months ago (2012-09-01 00:06:36 UTC) #18
Mihai Parparita -not on Chrome
LGTM http://codereview.chromium.org/10836341/diff/37001/chrome/browser/extensions/system_info_event_router.h File chrome/browser/extensions/system_info_event_router.h (right): http://codereview.chromium.org/10836341/diff/37001/chrome/browser/extensions/system_info_event_router.h#newcode45 chrome/browser/extensions/system_info_event_router.h:45: typedef std::map<std::string, int> EventWatchingMap; Nit: I think this ...
8 years, 3 months ago (2012-09-01 00:20:53 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/10836341/28011
8 years, 3 months ago (2012-09-02 02:37:55 UTC) #20
commit-bot: I haz the power
Presubmit check for 10836341-28011 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-02 02:38:00 UTC) #21
Hongbo Min
Nico, need your LGTM for gyp changes. Thanks. http://codereview.chromium.org/10836341/diff/37001/chrome/browser/extensions/system_info_event_router.h File chrome/browser/extensions/system_info_event_router.h (right): http://codereview.chromium.org/10836341/diff/37001/chrome/browser/extensions/system_info_event_router.h#newcode45 chrome/browser/extensions/system_info_event_router.h:45: typedef ...
8 years, 3 months ago (2012-09-02 02:47:12 UTC) #22
Nico
gypi ligtm
8 years, 3 months ago (2012-09-04 13:43:31 UTC) #23
Nico
On 2012/09/04 13:43:31, Nico wrote: > gypi ligtm *lgtm
8 years, 3 months ago (2012-09-04 13:43:42 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/10836341/28011
8 years, 3 months ago (2012-09-04 14:53:17 UTC) #25
commit-bot: I haz the power
8 years, 3 months ago (2012-09-04 17:37:39 UTC) #26
Change committed as 154770

Powered by Google App Engine
This is Rietveld 408576698