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

Issue 109273002: Convert base::MemoryMappedFile to use File instead of PlatformFile. (Closed)

Created:
7 years ago by rvargas (doing something else)
Modified:
6 years, 11 months ago
CC:
chromium-reviews, groby+spellwatch_chromium.org, feature-media-reviews_chromium.org, rpetterson, erikwright+watch_chromium.org, rouslan+spellwatch_chromium.org, vandebo (ex-Chrome)
Visibility:
Public.

Description

Convert base::MemoryMappedFile to use File instead of PlatformFile. This also modifies consumers of MemoryMappedFile and fixes double handle close on MediaFileChecker, media_file_checker_unittest and data_pack_unittests. BUG=322664 TEST=unit tests R=cpu@chromium.org, dalecurtis@chromium.org (media) TBR (owners): tony@chromium.org (resource) jochen@chromium.org (chrome-content) thakis@chromium.org (base) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242937

Patch Set 1 : #

Total comments: 12

Patch Set 2 : Posix GetSize #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -169 lines) Patch
M base/files/file.h View 2 chunks +8 lines, -2 lines 0 comments Download
M base/files/file.cc View 2 chunks +18 lines, -5 lines 0 comments Download
M base/files/file_posix.cc View 1 2 chunks +12 lines, -2 lines 0 comments Download
M base/files/file_unittest.cc View 5 chunks +19 lines, -3 lines 0 comments Download
M base/files/file_win.cc View 1 3 chunks +15 lines, -2 lines 0 comments Download
M base/files/memory_mapped_file.h View 3 chunks +13 lines, -17 lines 0 comments Download
M base/files/memory_mapped_file.cc View 3 chunks +11 lines, -16 lines 0 comments Download
M base/files/memory_mapped_file_posix.cc View 2 chunks +7 lines, -12 lines 0 comments Download
M base/files/memory_mapped_file_win.cc View 1 chunk +20 lines, -51 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/spellchecker/hunspell_engine.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/app/shell_main_delegate.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M media/base/media_file_checker.h View 3 chunks +3 lines, -5 lines 1 comment Download
M media/base/media_file_checker.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M media/base/media_file_checker_unittest.cc View 2 chunks +6 lines, -11 lines 0 comments Download
M media/filters/file_data_source.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/filters/file_data_source.cc View 1 chunk +7 lines, -9 lines 0 comments Download
M ui/base/resource/data_pack.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/base/resource/data_pack.cc View 1 chunk +2 lines, -2 lines 1 comment Download
M ui/base/resource/data_pack_unittest.cc View 3 chunks +4 lines, -8 lines 0 comments Download
M ui/base/resource/resource_bundle.h View 3 chunks +4 lines, -4 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
rvargas (doing something else)
PTAL
7 years ago (2013-12-20 20:40:11 UTC) #1
cpu_(ooo_6.6-7.5)
I have reviewed upto hunspell. I don't see any red flags so far. https://codereview.chromium.org/109273002/diff/60001/base/files/file.cc File ...
7 years ago (2013-12-21 22:59:33 UTC) #2
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/109273002/diff/60001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/109273002/diff/60001/chrome/app/chrome_main_delegate.cc#newcode671 chrome/app/chrome_main_delegate.cc:671: false); so locale_pak_fd will be closed at this point ...
7 years ago (2013-12-21 23:06:28 UTC) #3
groby-ooo-7-16
https://codereview.chromium.org/109273002/diff/60001/chrome/renderer/spellchecker/hunspell_engine.cc File chrome/renderer/spellchecker/hunspell_engine.cc (right): https://codereview.chromium.org/109273002/diff/60001/chrome/renderer/spellchecker/hunspell_engine.cc#newcode65 chrome/renderer/spellchecker/hunspell_engine.cc:65: // bdict_file_. If you want to address the TODO: ...
6 years, 12 months ago (2013-12-27 19:52:25 UTC) #4
rvargas (doing something else)
Thanks. https://codereview.chromium.org/109273002/diff/60001/base/files/file.cc File base/files/file.cc (right): https://codereview.chromium.org/109273002/diff/60001/base/files/file.cc#newcode41 base/files/file.cc:41: created_(false), On 2013/12/21 22:59:33, cpu wrote: > if ...
6 years, 12 months ago (2013-12-27 23:54:39 UTC) #5
groby-ooo-7-16
Might want to file a bug against spellcheck, then. (Also, removed myself from reviewers - ...
6 years, 12 months ago (2013-12-27 23:57:37 UTC) #6
cpu_(ooo_6.6-7.5)
lgtm ps: find out about GetInstance()->MaybeGet() https://codereview.chromium.org/109273002/diff/180001/media/base/media_file_checker.h File media/base/media_file_checker.h (left): https://codereview.chromium.org/109273002/diff/180001/media/base/media_file_checker.h#oldcode34 media/base/media_file_checker.h:34: base::ScopedPlatformFileCloser file_closer_; 33 ...
6 years, 12 months ago (2013-12-28 01:40:52 UTC) #7
rvargas (doing something else)
+Dale for the media files (which I think had bugs) +owners for the rest. https://codereview.chromium.org/109273002/diff/60001/chrome/app/chrome_main_delegate.cc ...
6 years, 12 months ago (2013-12-28 02:30:37 UTC) #8
tony
ui/base/resource LGTM
6 years, 11 months ago (2014-01-01 02:34:31 UTC) #9
DaleCurtis
media/ lgtm. That code is only used by the Media Galleries API, which I'm not ...
6 years, 11 months ago (2014-01-02 18:38:52 UTC) #10
jochen (gone - plz use gerrit)
lgtm
6 years, 11 months ago (2014-01-03 11:37:33 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/109273002/180001
6 years, 11 months ago (2014-01-03 18:56:44 UTC) #12
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=43202
6 years, 11 months ago (2014-01-03 19:13:19 UTC) #13
Nico
lgtm
6 years, 11 months ago (2014-01-03 19:14:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rvargas@chromium.org/109273002/180001
6 years, 11 months ago (2014-01-03 19:14:46 UTC) #15
commit-bot: I haz the power
6 years, 11 months ago (2014-01-03 22:14:17 UTC) #16
Message was sent while issue was closed.
Change committed as 242937

Powered by Google App Engine
This is Rietveld 408576698