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

Issue 7063020: Adding `browsing_data_filesystem_helper*` as the first step towards content settings UI. (Closed)

Created:
9 years, 7 months ago by Mike West
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ian fette, Dai Mikurube (NOT FULLTIME), tzik
Visibility:
Public.

Description

Adding `browsing_data_filesystem_helper*` as the first step towards content settings UI. gypi files. BUG=63703 TEST=BrowsingDataFilesystemHelperTest* in `browser_tests` and `unit_tests` Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86904

Patch Set 1 #

Patch Set 2 : Adding webkit/quota to chrome/DEPS #

Total comments: 26

Patch Set 3 : Cleaning up tests thanks to Paweł #

Total comments: 16

Patch Set 4 : Cleaning up based on Jochen and Eric's feedback #

Total comments: 16

Patch Set 5 : Working in Kinuko's feedback. #

Total comments: 5

Patch Set 6 : Dropping QuotaManager from TestingProfile." #

Patch Set 7 : ValidateFileSystemRootAndGetPathOnFileThread #

Patch Set 8 : Failing test. #

Total comments: 4

Patch Set 9 : Rebasing onto trunk, fixing broken test. #

Total comments: 2

Patch Set 10 : Stubbing out file system sizes in FileSystemInfo. #

Patch Set 11 : Unstubbing filesystem sizes. #

Patch Set 12 : Wrong include. #

Total comments: 2

Patch Set 13 : Dropping explicit use of UI thread. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+702 lines, -1 line) Patch
M chrome/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/browsing_data_file_system_helper.h View 1 2 3 4 5 6 7 8 9 1 chunk +143 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data_file_system_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +289 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data_file_system_helper_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +216 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data_file_system_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.cc View 1 2 3 4 5 6 7 8 2 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
Mike West
Here's step one of the filesystem UI work, which took a good deal longer than ...
9 years, 7 months ago (2011-05-24 14:31:23 UTC) #1
Paweł Hajdan Jr.
Drive-by with testing nits. http://codereview.chromium.org/7063020/diff/2001/chrome/browser/browsing_data_filesystem_helper_browsertest.cc File chrome/browser/browsing_data_filesystem_helper_browsertest.cc (right): http://codereview.chromium.org/7063020/diff/2001/chrome/browser/browsing_data_filesystem_helper_browsertest.cc#newcode20 chrome/browser/browsing_data_filesystem_helper_browsertest.cc:20: #include "content/browser/browser_thread.h" nit: What's going ...
9 years, 7 months ago (2011-05-24 16:30:31 UTC) #2
Mike West
Thanks Paweł. One question regarding DCHECKs in `test_profile.cc`, the rest were quite clear. http://codereview.chromium.org/7063020/diff/2001/chrome/browser/browsing_data_filesystem_helper_browsertest.cc File ...
9 years, 7 months ago (2011-05-24 16:53:50 UTC) #3
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM, thanks! http://codereview.chromium.org/7063020/diff/2001/chrome/test/testing_profile.cc File chrome/test/testing_profile.cc (right): http://codereview.chromium.org/7063020/diff/2001/chrome/test/testing_profile.cc#newcode529 chrome/test/testing_profile.cc:529: DCHECK(file_system_context_.get()); ...
9 years, 7 months ago (2011-05-24 17:04:19 UTC) #4
jochen (gone - plz use gerrit)
http://codereview.chromium.org/7063020/diff/1018/chrome/browser/browsing_data_filesystem_helper.cc File chrome/browser/browsing_data_filesystem_helper.cc (right): http://codereview.chromium.org/7063020/diff/1018/chrome/browser/browsing_data_filesystem_helper.cc#newcode240 chrome/browser/browsing_data_filesystem_helper.cc:240: BrowserThread::PostTask(BrowserThread::WEBKIT, FROM_HERE, NewRunnableMethod( as you're not accessing webkit methods ...
9 years, 7 months ago (2011-05-24 19:41:46 UTC) #5
ericu
I don't know the UI stuff, so I mainly just looked over your calls into ...
9 years, 7 months ago (2011-05-24 23:08:15 UTC) #6
Mike West
Rebased onto trunk, and took care of the points Eric and Jochen raised, and I've ...
9 years, 7 months ago (2011-05-25 09:22:36 UTC) #7
kinuko
Some more comments. (I'm not very familiar with how BrowsingXxx should work either, so please ...
9 years, 7 months ago (2011-05-25 10:24:40 UTC) #8
kinuko
Btw overall the code looks really nice thanks for working on this, really. On 2011/05/25 ...
9 years, 7 months ago (2011-05-25 10:25:16 UTC) #9
Mike West
Thanks Kinuko! Just one remaining question regarding ValidateFileSystemRootAndGetPathOnFileThread. :) http://codereview.chromium.org/7063020/diff/8001/chrome/browser/browsing_data_file_system_helper.cc File chrome/browser/browsing_data_file_system_helper.cc (right): http://codereview.chromium.org/7063020/diff/8001/chrome/browser/browsing_data_file_system_helper.cc#newcode67 chrome/browser/browsing_data_file_system_helper.cc:67: ...
9 years, 7 months ago (2011-05-25 12:00:01 UTC) #10
kinuko
I think it's looking good, to the best of my superficial look. http://codereview.chromium.org/7063020/diff/8001/chrome/browser/browsing_data_file_system_helper_browsertest.cc File chrome/browser/browsing_data_file_system_helper_browsertest.cc ...
9 years, 7 months ago (2011-05-25 12:34:57 UTC) #11
Mike West
http://codereview.chromium.org/7063020/diff/1040/chrome/browser/browsing_data_file_system_helper.cc File chrome/browser/browsing_data_file_system_helper.cc (right): http://codereview.chromium.org/7063020/diff/1040/chrome/browser/browsing_data_file_system_helper.cc#newcode230 chrome/browser/browsing_data_file_system_helper.cc:230: &CannedBrowsingDataFileSystemHelper::ConvertPendingInfo)); On 2011/05/25 12:34:58, kinuko wrote: > So what's ...
9 years, 7 months ago (2011-05-25 12:55:10 UTC) #12
jochen (gone - plz use gerrit)
On 2011/05/25 12:55:10, Mike West wrote: > http://codereview.chromium.org/7063020/diff/1040/chrome/browser/browsing_data_file_system_helper.cc > File chrome/browser/browsing_data_file_system_helper.cc (right): > > http://codereview.chromium.org/7063020/diff/1040/chrome/browser/browsing_data_file_system_helper.cc#newcode230 ...
9 years, 7 months ago (2011-05-25 15:45:20 UTC) #13
Mike West
Helo me Jochen! You're my only hope! http://codereview.chromium.org/7063020/diff/1040/chrome/browser/browsing_data_file_system_helper.cc File chrome/browser/browsing_data_file_system_helper.cc (right): http://codereview.chromium.org/7063020/diff/1040/chrome/browser/browsing_data_file_system_helper.cc#newcode230 chrome/browser/browsing_data_file_system_helper.cc:230: &CannedBrowsingDataFileSystemHelper::ConvertPendingInfo)); On ...
9 years, 7 months ago (2011-05-25 16:07:28 UTC) #14
michaeln
http://codereview.chromium.org/7063020/diff/10004/chrome/browser/browsing_data_file_system_helper.cc File chrome/browser/browsing_data_file_system_helper.cc (right): http://codereview.chromium.org/7063020/diff/10004/chrome/browser/browsing_data_file_system_helper.cc#newcode255 chrome/browser/browsing_data_file_system_helper.cc:255: callback->Run(file_system_info_); Do you also need to delete the callback ...
9 years, 7 months ago (2011-05-25 18:26:33 UTC) #15
jochen (gone - plz use gerrit)
On 2011/05/25 18:26:33, michaeln wrote: > http://codereview.chromium.org/7063020/diff/10004/chrome/browser/browsing_data_file_system_helper.cc > File chrome/browser/browsing_data_file_system_helper.cc (right): > > http://codereview.chromium.org/7063020/diff/10004/chrome/browser/browsing_data_file_system_helper.cc#newcode255 > ...
9 years, 7 months ago (2011-05-25 19:07:35 UTC) #16
ericu
http://codereview.chromium.org/7063020/diff/8001/chrome/browser/browsing_data_file_system_helper_browsertest.cc File chrome/browser/browsing_data_file_system_helper_browsertest.cc (right): http://codereview.chromium.org/7063020/diff/8001/chrome/browser/browsing_data_file_system_helper_browsertest.cc#newcode59 chrome/browser/browsing_data_file_system_helper_browsertest.cc:59: ASSERT_TRUE(file_util::CreateDirectory(target)); On 2011/05/25 12:34:58, kinuko wrote: > On 2011/05/25 ...
9 years, 7 months ago (2011-05-25 19:36:30 UTC) #17
Mike West
http://codereview.chromium.org/7063020/diff/10004/chrome/browser/browsing_data_file_system_helper.cc File chrome/browser/browsing_data_file_system_helper.cc (right): http://codereview.chromium.org/7063020/diff/10004/chrome/browser/browsing_data_file_system_helper.cc#newcode117 chrome/browser/browsing_data_file_system_helper.cc:117: } On 2011/05/25 19:36:30, ericu wrote: > If you ...
9 years, 7 months ago (2011-05-25 19:50:24 UTC) #18
Eric U.
On Wed, May 25, 2011 at 12:50 PM, <mkwst@chromium.org> wrote: > > http://codereview.chromium.org/7063020/diff/10004/chrome/browser/browsing_data_file_system_helper.cc > File ...
9 years, 7 months ago (2011-05-25 19:58:35 UTC) #19
Mike West
Ok, tests are working again. I'll let this run through the trybots, and then I ...
9 years, 7 months ago (2011-05-26 07:20:34 UTC) #20
kinuko
FileSystem part LGTM (unless eric objects) http://codereview.chromium.org/7063020/diff/15001/chrome/test/testing_profile.h File chrome/test/testing_profile.h (right): http://codereview.chromium.org/7063020/diff/15001/chrome/test/testing_profile.h#newcode389 chrome/test/testing_profile.h:389: scoped_refptr<quota::QuotaManager> quota_manager_; We ...
9 years, 7 months ago (2011-05-26 07:51:36 UTC) #21
Mike West
Added queries for filesystem size via FileSystemQuotaUtil::GetOriginUsageOnFileThread. Since I'm already on the FILE thread inside ...
9 years, 7 months ago (2011-05-26 11:36:34 UTC) #22
ericu
On 2011/05/26 11:36:34, Mike West wrote: > Added queries for filesystem size via > FileSystemQuotaUtil::GetOriginUsageOnFileThread. ...
9 years, 7 months ago (2011-05-26 17:18:40 UTC) #23
michaeln
lgtm2 http://codereview.chromium.org/7063020/diff/25002/chrome/browser/browsing_data_file_system_helper.cc File chrome/browser/browsing_data_file_system_helper.cc (right): http://codereview.chromium.org/7063020/diff/25002/chrome/browser/browsing_data_file_system_helper.cc#newcode279 chrome/browser/browsing_data_file_system_helper.cc:279: BrowserThread::UI, FROM_HERE, maybe use MessageLoop::current or MessageLoopProxy::CreateForCurrentThread here ...
9 years, 7 months ago (2011-05-26 17:39:53 UTC) #24
Mike West
Thanks! http://codereview.chromium.org/7063020/diff/25002/chrome/browser/browsing_data_file_system_helper.cc File chrome/browser/browsing_data_file_system_helper.cc (right): http://codereview.chromium.org/7063020/diff/25002/chrome/browser/browsing_data_file_system_helper.cc#newcode279 chrome/browser/browsing_data_file_system_helper.cc:279: BrowserThread::UI, FROM_HERE, On 2011/05/26 17:39:53, michaeln wrote: > ...
9 years, 7 months ago (2011-05-26 18:55:47 UTC) #25
commit-bot: I haz the power
9 years, 7 months ago (2011-05-26 22:07:39 UTC) #26
Change committed as 86904

Powered by Google App Engine
This is Rietveld 408576698