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

Issue 12084017: [SystemInfo API] Implement systemInfo.storage.onAvailableCapacityChanged event (Closed)

Created:
7 years, 11 months ago by Hongbo Min
Modified:
7 years, 10 months ago
Reviewers:
benwells, sky
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

This patch is to implement. storage.onAvailableCapacityChanged event. Current implementation adopts polling-based method to check the free space change periodically at one second time interval. Once a listener is attached to the onAvailableCapacityChanged event, all storages are being watched, and the event will be emitted as soon as the free space changes. The watching will be stopped when the last event listener is removed. BUG=163862 TEST=browser_tests --gtest_filter=SystemInfoStorageApiTest.Storage Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180626

Patch Set 1 : #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : rebase #

Patch Set 4 : fix compile error #

Total comments: 10

Patch Set 5 : update #

Patch Set 6 : Add a stub file to pass building on Android #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -131 lines) Patch
A chrome/browser/extensions/api/system_info_storage/storage_info_observer.h View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/system_info_storage/storage_info_provider.h View 3 chunks +4 lines, -13 lines 0 comments Download
M chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc View 2 chunks +4 lines, -4 lines 0 comments Download
A chrome/browser/extensions/api/system_info_storage/storage_info_provider_android.cc View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/system_info_storage/storage_info_provider_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc View 1 2 3 2 chunks +41 lines, -64 lines 0 comments Download
M chrome/browser/extensions/system_info_event_router.h View 1 2 3 4 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/extensions/system_info_event_router.cc View 1 2 3 4 4 chunks +39 lines, -16 lines 0 comments Download
M chrome/browser/extensions/system_info_provider.h View 1 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 2 chunks +4 lines, -0 lines 2 comments Download
M chrome/test/data/extensions/api_test/systeminfo/storage/manifest.json View 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/systeminfo/storage/test_storage_api.js View 1 chunk +45 lines, -22 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Hongbo Min
benwells@, since https://codereview.chromium.org/11419279/ is a big patch to implement a full-version onChanged event, it might ...
7 years, 11 months ago (2013-01-28 05:54:56 UTC) #1
Hongbo Min
Next step is to implement a fine-grained onAvailableCapacityChanged event, e.g. allow developer to configure the ...
7 years, 11 months ago (2013-01-28 05:59:44 UTC) #2
benwells
https://codereview.chromium.org/12084017/diff/1001/chrome/browser/extensions/api/system_info_storage/storage_info_observer.h File chrome/browser/extensions/api/system_info_storage/storage_info_observer.h (right): https://codereview.chromium.org/12084017/diff/1001/chrome/browser/extensions/api/system_info_storage/storage_info_observer.h#newcode1 chrome/browser/extensions/api/system_info_storage/storage_info_observer.h:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 10 months ago (2013-01-31 04:04:57 UTC) #3
Hongbo Min
https://codereview.chromium.org/12084017/diff/1001/chrome/browser/extensions/api/system_info_storage/storage_info_observer.h File chrome/browser/extensions/api/system_info_storage/storage_info_observer.h (right): https://codereview.chromium.org/12084017/diff/1001/chrome/browser/extensions/api/system_info_storage/storage_info_observer.h#newcode1 chrome/browser/extensions/api/system_info_storage/storage_info_observer.h:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 10 months ago (2013-02-01 07:06:49 UTC) #4
Hongbo Min
7 years, 10 months ago (2013-02-01 07:27:48 UTC) #5
benwells
https://codereview.chromium.org/12084017/diff/1001/chrome/browser/extensions/api/system_info_storage/storage_info_observer.h File chrome/browser/extensions/api/system_info_storage/storage_info_observer.h (right): https://codereview.chromium.org/12084017/diff/1001/chrome/browser/extensions/api/system_info_storage/storage_info_observer.h#newcode1 chrome/browser/extensions/api/system_info_storage/storage_info_observer.h:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 10 months ago (2013-02-04 04:21:41 UTC) #6
Hongbo Min
https://codereview.chromium.org/12084017/diff/32003/chrome/browser/extensions/system_info_event_router.cc File chrome/browser/extensions/system_info_event_router.cc (right): https://codereview.chromium.org/12084017/diff/32003/chrome/browser/extensions/system_info_event_router.cc#newcode69 chrome/browser/extensions/system_info_event_router.cc:69: if (!success) return; On 2013/02/04 04:21:41, benwells wrote: > ...
7 years, 10 months ago (2013-02-04 04:53:28 UTC) #7
benwells
lgtm
7 years, 10 months ago (2013-02-04 04:55:04 UTC) #8
Hongbo Min
sky@, need your lgtm for gyp changes.
7 years, 10 months ago (2013-02-04 06:18:48 UTC) #9
benwells
On 2013/02/04 06:18:48, Hongbo Min wrote: > sky@, need your lgtm for gyp changes. You ...
7 years, 10 months ago (2013-02-04 06:23:18 UTC) #10
sky
LGTM https://codereview.chromium.org/12084017/diff/37007/chrome/chrome_browser_extensions.gypi File chrome/chrome_browser_extensions.gypi (right): https://codereview.chromium.org/12084017/diff/37007/chrome/chrome_browser_extensions.gypi#newcode389 chrome/chrome_browser_extensions.gypi:389: 'browser/extensions/api/system_info_storage/storage_info_observer.h', .cc first
7 years, 10 months ago (2013-02-04 15:45:35 UTC) #11
Hongbo Min
https://codereview.chromium.org/12084017/diff/37007/chrome/chrome_browser_extensions.gypi File chrome/chrome_browser_extensions.gypi (right): https://codereview.chromium.org/12084017/diff/37007/chrome/chrome_browser_extensions.gypi#newcode389 chrome/chrome_browser_extensions.gypi:389: 'browser/extensions/api/system_info_storage/storage_info_observer.h', On 2013/02/04 15:45:35, sky wrote: > .cc first ...
7 years, 10 months ago (2013-02-05 02:17:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/12084017/37007
7 years, 10 months ago (2013-02-05 03:33:03 UTC) #13
commit-bot: I haz the power
7 years, 10 months ago (2013-02-05 07:41:29 UTC) #14
Message was sent while issue was closed.
Change committed as 180626

Powered by Google App Engine
This is Rietveld 408576698