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

Issue 2203123003: [Chromecast] Remove usage of nonreentrant functions. (Closed)

Created:
4 years, 4 months ago by ameyak1
Modified:
4 years, 4 months ago
Reviewers:
slan, ameyak, bcf
CC:
chromium-reviews, kalyank, lcwu+watch_chromium.org, sadrul, halliwell+watch_chromium.org, alokp+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromecast] Remove usage of nonreetrant functions. Remove usage of dmtime & readdir_r Replace usage of time_t with base::Time::ToDoubleT() Replace int error codes with bool error codes Remove unix headers in favor of chromium-equivalent functions These changes are applied to files in directory crash/linux/ BUG=internal b/27252596 TEST=builds, cast_crash_unittests Committed: https://crrev.com/062511105e551e0e48f4a56e89b68c5c7b84672e Cr-Commit-Position: refs/heads/master@{#410441}

Patch Set 1 #

Patch Set 2 : Use base::FilePath #

Patch Set 3 : synchronized_minidump_manager changes #

Total comments: 18

Patch Set 4 : bcf@ comments #

Total comments: 6

Patch Set 5 : Remove time_t usage #

Total comments: 2

Patch Set 6 : Resolve blatant file locking errors #

Patch Set 7 : Cleanup #

Total comments: 14

Patch Set 8 : Bool error codes #

Total comments: 24

Patch Set 9 : slan@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -343 lines) Patch
M chromecast/base/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A chromecast/base/file_utils.h View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download
A chromecast/base/file_utils.cc View 1 2 3 4 5 6 7 8 1 chunk +47 lines, -0 lines 0 comments Download
M chromecast/crash/linux/crash_testing_utils.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chromecast/crash/linux/crash_testing_utils.cc View 1 2 3 4 5 2 chunks +3 lines, -5 lines 0 comments Download
M chromecast/crash/linux/crash_util.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chromecast/crash/linux/dump_info.h View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M chromecast/crash/linux/dump_info.cc View 4 chunks +15 lines, -25 lines 0 comments Download
M chromecast/crash/linux/dump_info_unittest.cc View 4 chunks +32 lines, -36 lines 0 comments Download
M chromecast/crash/linux/minidump_writer.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chromecast/crash/linux/minidump_writer.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -9 lines 0 comments Download
M chromecast/crash/linux/synchronized_minidump_manager.h View 1 2 3 4 5 6 7 4 chunks +23 lines, -35 lines 0 comments Download
M chromecast/crash/linux/synchronized_minidump_manager.cc View 1 2 3 4 5 6 7 8 17 chunks +93 lines, -124 lines 0 comments Download
M chromecast/crash/linux/synchronized_minidump_manager_unittest.cc View 1 2 3 4 5 6 7 23 chunks +47 lines, -101 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
ameyak
4 years, 4 months ago (2016-08-02 21:55:05 UTC) #4
bcf
https://codereview.chromium.org/2203123003/diff/40001/chromecast/base/file_utils.cc File chromecast/base/file_utils.cc (right): https://codereview.chromium.org/2203123003/diff/40001/chromecast/base/file_utils.cc#newcode16 chromecast/base/file_utils.cc:16: LOG(ERROR) << "Error finding " << file << " ...
4 years, 4 months ago (2016-08-03 02:40:24 UTC) #5
ameyak
https://codereview.chromium.org/2203123003/diff/40001/chromecast/base/file_utils.cc File chromecast/base/file_utils.cc (right): https://codereview.chromium.org/2203123003/diff/40001/chromecast/base/file_utils.cc#newcode16 chromecast/base/file_utils.cc:16: LOG(ERROR) << "Error finding " << file << " ...
4 years, 4 months ago (2016-08-03 18:50:33 UTC) #6
bcf
https://codereview.chromium.org/2203123003/diff/40001/chromecast/crash/linux/synchronized_minidump_manager.cc File chromecast/crash/linux/synchronized_minidump_manager.cc (left): https://codereview.chromium.org/2203123003/diff/40001/chromecast/crash/linux/synchronized_minidump_manager.cc#oldcode14 chromecast/crash/linux/synchronized_minidump_manager.cc:14: #include <sys/stat.h> On 2016/08/03 18:50:32, ameyak wrote: > On ...
4 years, 4 months ago (2016-08-03 20:45:10 UTC) #7
ameyak
https://codereview.chromium.org/2203123003/diff/40001/chromecast/crash/linux/synchronized_minidump_manager.cc File chromecast/crash/linux/synchronized_minidump_manager.cc (left): https://codereview.chromium.org/2203123003/diff/40001/chromecast/crash/linux/synchronized_minidump_manager.cc#oldcode14 chromecast/crash/linux/synchronized_minidump_manager.cc:14: #include <sys/stat.h> On 2016/08/03 20:45:10, bcf wrote: > On ...
4 years, 4 months ago (2016-08-04 15:25:31 UTC) #8
bcf
https://codereview.chromium.org/2203123003/diff/80001/chromecast/crash/linux/synchronized_minidump_manager.cc File chromecast/crash/linux/synchronized_minidump_manager.cc (right): https://codereview.chromium.org/2203123003/diff/80001/chromecast/crash/linux/synchronized_minidump_manager.cc#newcode291 chromecast/crash/linux/synchronized_minidump_manager.cc:291: ratelimit_fields->SetDouble(kLockfileRatelimitPeriodStartKey, 0); nit: 0.0 for double. https://codereview.chromium.org/2203123003/diff/120001/chromecast/crash/linux/synchronized_minidump_manager.cc File chromecast/crash/linux/synchronized_minidump_manager.cc ...
4 years, 4 months ago (2016-08-05 03:33:24 UTC) #9
ameyak
https://codereview.chromium.org/2203123003/diff/80001/chromecast/crash/linux/synchronized_minidump_manager.cc File chromecast/crash/linux/synchronized_minidump_manager.cc (right): https://codereview.chromium.org/2203123003/diff/80001/chromecast/crash/linux/synchronized_minidump_manager.cc#newcode291 chromecast/crash/linux/synchronized_minidump_manager.cc:291: ratelimit_fields->SetDouble(kLockfileRatelimitPeriodStartKey, 0); On 2016/08/05 03:33:23, bcf wrote: > nit: ...
4 years, 4 months ago (2016-08-05 18:45:07 UTC) #11
slan
Looks good, just nits. https://codereview.chromium.org/2203123003/diff/140001/chromecast/base/file_utils.cc File chromecast/base/file_utils.cc (right): https://codereview.chromium.org/2203123003/diff/140001/chromecast/base/file_utils.cc#newcode13 chromecast/base/file_utils.cc:13: bool CallFlockOnFileWithFlag(const int fd, int ...
4 years, 4 months ago (2016-08-08 16:37:11 UTC) #12
ameyak
https://codereview.chromium.org/2203123003/diff/140001/chromecast/base/file_utils.cc File chromecast/base/file_utils.cc (right): https://codereview.chromium.org/2203123003/diff/140001/chromecast/base/file_utils.cc#newcode13 chromecast/base/file_utils.cc:13: bool CallFlockOnFileWithFlag(const int fd, int flag) { On 2016/08/08 ...
4 years, 4 months ago (2016-08-08 18:00:44 UTC) #13
slan
LGTM; please wait for LGTM from bcf@ too. https://codereview.chromium.org/2203123003/diff/140001/chromecast/base/file_utils.h File chromecast/base/file_utils.h (right): https://codereview.chromium.org/2203123003/diff/140001/chromecast/base/file_utils.h#newcode15 chromecast/base/file_utils.h:15: int ...
4 years, 4 months ago (2016-08-08 18:32:19 UTC) #14
slan
On 2016/08/08 18:32:19, slan wrote: > LGTM; please wait for LGTM from bcf@ too. > ...
4 years, 4 months ago (2016-08-08 18:40:37 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2203123003/160001
4 years, 4 months ago (2016-08-08 18:46:50 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/179637) chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 4 months ago (2016-08-08 18:53:53 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2203123003/160001
4 years, 4 months ago (2016-08-08 20:05:57 UTC) #21
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 4 months ago (2016-08-08 20:34:32 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 20:36:45 UTC) #25
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/062511105e551e0e48f4a56e89b68c5c7b84672e
Cr-Commit-Position: refs/heads/master@{#410441}

Powered by Google App Engine
This is Rietveld 408576698