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

Issue 11415177: Implements the storage free space watching functionality into storage info provider (Closed)

Created:
8 years ago by Hongbo Min
Modified:
8 years ago
Reviewers:
Ilya Sherman, benwells, Nico
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, benwells, jhawkins
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Implements the storage free space watching functionality into storage info provider in a way of polling the free space changes at a regular time interval. BUG=141229 TEST=unit_test --gtest_filter=StorageInfoProviderTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170667

Patch Set 1 #

Patch Set 2 : unit test enhancement #

Total comments: 18

Patch Set 3 : update patch and test case enhancement #

Total comments: 4

Patch Set 4 : update #

Patch Set 5 : avoid naming conflict in browser_tests #

Total comments: 14
Unified diffs Side-by-side diffs Delta from patch set Stats (+454 lines, -6 lines) Patch
M chrome/browser/extensions/api/system_info_storage/storage_info_provider.h View 1 2 3 2 chunks +73 lines, -2 lines 3 comments Download
M chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc View 1 2 3 2 chunks +135 lines, -0 lines 3 comments Download
A chrome/browser/extensions/api/system_info_storage/storage_info_provider_unittest.cc View 1 2 1 chunk +241 lines, -0 lines 8 comments Download
M chrome/browser/extensions/api/system_info_storage/system_info_storage_apitest.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Hongbo Min
benwells@, pls help review the patch. Nico@, need your LGTM for gyp change.
8 years ago (2012-11-28 16:18:16 UTC) #1
benwells
https://codereview.chromium.org/11415177/diff/8001/chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc File chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc (right): https://codereview.chromium.org/11415177/diff/8001/chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc#newcode122 chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc:122: if (watching_ids_map_.size() == 0) Please remove the early return. ...
8 years ago (2012-11-29 05:12:46 UTC) #2
Hongbo Min
https://chromiumcodereview.appspot.com/11415177/diff/8001/chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc File chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc (right): https://chromiumcodereview.appspot.com/11415177/diff/8001/chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc#newcode122 chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc:122: if (watching_ids_map_.size() == 0) On 2012/11/29 05:12:47, benwells wrote: ...
8 years ago (2012-11-29 08:45:25 UTC) #3
Hongbo Min
benwells@, the patch is updated. Pls review it again. Nico, need your LGTM for gypi ...
8 years ago (2012-11-29 08:45:38 UTC) #4
Hongbo Min
On 2012/11/29 08:45:38, Hongbo Min wrote: > benwells@, the patch is updated. Pls review it ...
8 years ago (2012-12-01 02:26:20 UTC) #5
benwells
lgtm with nits https://codereview.chromium.org/11415177/diff/6/chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc File chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc (right): https://codereview.chromium.org/11415177/diff/6/chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc#newcode111 chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc:111: storage_id_to_size_map_.erase(id); Nit: blank line after early ...
8 years ago (2012-12-01 02:46:25 UTC) #6
Hongbo Min
ping Nico@, need your LGTM for gyp change. Thanks. https://codereview.chromium.org/11415177/diff/6/chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc File chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc (right): https://codereview.chromium.org/11415177/diff/6/chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc#newcode111 chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc:111: ...
8 years ago (2012-12-01 03:16:36 UTC) #7
Hongbo Min
ping Nico@, need your LGTM for gyp change. Thanks.
8 years ago (2012-12-01 03:16:46 UTC) #8
Nico
gypi lgtm
8 years ago (2012-12-01 03:47:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/11415177/4006
8 years ago (2012-12-01 05:01:38 UTC) #10
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-01 05:45:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/11415177/12004
8 years ago (2012-12-01 05:54:30 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-01 10:32:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hongbo.min@intel.com/11415177/12004
8 years ago (2012-12-01 10:47:00 UTC) #14
commit-bot: I haz the power
Change committed as 170667
8 years ago (2012-12-01 18:09:57 UTC) #15
Ilya Sherman
Pardon the drive-by; I found this CL while chasing down [ http://crbug.com/163964 ]. I know ...
8 years ago (2012-12-03 19:37:59 UTC) #16
Hongbo Min
Sherman, thanks for your reviewing comments. Once we have final agreement on them, I will ...
8 years ago (2012-12-04 02:58:25 UTC) #17
Hongbo Min
https://codereview.chromium.org/11415177/diff/12004/chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc#newcode86 > chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc:86: > DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); > On 2012/12/03 19:38:00, Ilya Sherman wrote: > > You ...
8 years ago (2012-12-04 08:17:06 UTC) #18
Ilya Sherman
On 2012/12/04 08:17:06, Hongbo Min wrote: > https://codereview.chromium.org/11415177/diff/12004/chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc#newcode86 > > chrome/browser/extensions/api/system_info_storage/storage_info_provider.cc:86: > > DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); > ...
8 years ago (2012-12-04 22:03:55 UTC) #19
Hongbo Min
8 years ago (2012-12-05 06:08:47 UTC) #20
Message was sent while issue was closed.
sherman, 

Generally speaking, I understand your concerns about the Timer  usage and
FILE thread. Actually, the querying operation doesn't require a fine-grained
real-time, so it should be fine although there is a lengthy operation occurred
on FILE thread. Anyway, you exposed a good question to the implementation, can
we have an opportunity to optimize the implementation using worker blocking
pool?

Powered by Google App Engine
This is Rietveld 408576698