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

Issue 706993003: C++ readability review (Closed)

Created:
6 years, 1 month ago by Chirantan Ekbote
Modified:
5 years, 8 months ago
CC:
chromium-reviews, Sameer Nanda, Lei Zhang, blundell
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

C++ readability review BUG=b/18275087 Committed: https://crrev.com/05e4d854dca737cfb43cd967cd72d024f6b1625b Cr-Commit-Position: refs/heads/master@{#324004}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Total comments: 47

Patch Set 3 : refactor #

Patch Set 4 : clean up comments #

Total comments: 6

Patch Set 5 : address comments #

Patch Set 6 : reorder #

Total comments: 1

Patch Set 7 : Move tests into top-level function #

Patch Set 8 : Fix gn build #

Total comments: 19

Patch Set 9 : address comments #

Total comments: 2

Patch Set 10 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+787 lines, -706 lines) Patch
M components/gcm_driver/gcm_driver_desktop.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M components/timers.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -5 lines 0 comments Download
M components/timers/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -4 lines 0 comments Download
M components/timers/alarm_timer.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -105 lines 0 comments Download
M components/timers/alarm_timer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -127 lines 0 comments Download
A components/timers/alarm_timer_chromeos.h View 1 2 3 4 5 6 7 8 9 1 chunk +146 lines, -0 lines 0 comments Download
A components/timers/alarm_timer_chromeos.cc View 1 2 3 4 5 6 7 8 9 1 chunk +466 lines, -0 lines 0 comments Download
M components/timers/alarm_timer_unittest.cc View 1 2 3 4 5 6 7 8 9 18 chunks +168 lines, -182 lines 0 comments Download
D components/timers/rtc_alarm.h View 1 2 1 chunk +0 lines, -95 lines 0 comments Download
D components/timers/rtc_alarm.cc View 1 2 1 chunk +0 lines, -186 lines 0 comments Download

Messages

Total messages: 29 (5 generated)
Chirantan Ekbote
6 years, 1 month ago (2014-11-06 20:40:32 UTC) #2
Daniel Erat
https://codereview.chromium.org/706993003/diff/1/components/timers/alarm_timer.h File components/timers/alarm_timer.h (right): https://codereview.chromium.org/706993003/diff/1/components/timers/alarm_timer.h#newcode105 components/timers/alarm_timer.h:105: what are the extra blank lines here and in ...
6 years, 1 month ago (2014-11-06 20:43:15 UTC) #3
Chirantan Ekbote
https://codereview.chromium.org/706993003/diff/1/components/timers/alarm_timer.h File components/timers/alarm_timer.h (right): https://codereview.chromium.org/706993003/diff/1/components/timers/alarm_timer.h#newcode105 components/timers/alarm_timer.h:105: On 2014/11/06 20:43:15, Daniel Erat wrote: > what are ...
6 years, 1 month ago (2014-11-06 20:45:34 UTC) #4
Chirantan Ekbote
Hi Geoffrey, please take a look.
6 years ago (2014-11-26 21:11:50 UTC) #6
gromer
Thanks for participating in the readability process! I'm only going to comment on each kind ...
6 years ago (2014-12-05 20:13:41 UTC) #7
Lei Zhang
https://codereview.chromium.org/706993003/diff/20001/components/timers/alarm_timer.h File components/timers/alarm_timer.h (right): https://codereview.chromium.org/706993003/diff/20001/components/timers/alarm_timer.h#newcode34 components/timers/alarm_timer.h:34: class Delegate : public base::RefCountedThreadSafe<Delegate> { On 2014/12/05 20:13:40, ...
6 years ago (2014-12-05 20:58:12 UTC) #8
Chirantan Ekbote
Thanks for taking the time to do this review and sorry it took so long ...
5 years, 11 months ago (2014-12-31 00:58:30 UTC) #9
chromium-reviews
On Tue, Dec 30, 2014 at 4:58 PM, <chirantan@chromium.org> wrote: > Thanks for taking the ...
5 years, 10 months ago (2015-02-03 21:10:39 UTC) #10
Chirantan Ekbote
Sorry, I got wrapped up in the upcoming launch of my current project and this ...
5 years, 10 months ago (2015-02-05 02:17:53 UTC) #12
gromer
https://codereview.chromium.org/706993003/diff/20001/components/timers/alarm_timer.cc File components/timers/alarm_timer.cc (right): https://codereview.chromium.org/706993003/diff/20001/components/timers/alarm_timer.cc#newcode103 components/timers/alarm_timer.cc:103: Stop(); On 2014/12/31 00:58:29, Chirantan Ekbote wrote: > On ...
5 years, 10 months ago (2015-02-10 23:47:10 UTC) #13
Chirantan Ekbote
ptal https://codereview.chromium.org/706993003/diff/20001/components/timers/alarm_timer.h File components/timers/alarm_timer.h (right): https://codereview.chromium.org/706993003/diff/20001/components/timers/alarm_timer.h#newcode28 components/timers/alarm_timer.h:28: public base::MessageLoop::DestructionObserver { On 2015/02/10 23:47:10, gromer wrote: ...
5 years, 10 months ago (2015-02-12 01:49:59 UTC) #14
gromer
https://codereview.chromium.org/706993003/diff/20001/components/timers/alarm_timer_unittest.cc File components/timers/alarm_timer_unittest.cc (right): https://codereview.chromium.org/706993003/diff/20001/components/timers/alarm_timer_unittest.cc#newcode423 components/timers/alarm_timer_unittest.cc:423: void RunTest_OneShotTimerConcurrentResetAndTimerFired( On 2015/02/12 01:49:58, Chirantan Ekbote wrote: > ...
5 years, 10 months ago (2015-02-17 22:02:09 UTC) #15
Chirantan Ekbote
PTAL. Sorry this took a little long. I thought this would be a good opportunity ...
5 years, 10 months ago (2015-02-25 03:32:56 UTC) #16
gromer
lgtm OK, this looks good. Congratulations on achieving C++ readability! Please use your new power ...
5 years, 9 months ago (2015-03-06 20:37:36 UTC) #17
Chirantan Ekbote
On 2015/03/06 20:37:36, gromer wrote: > lgtm > > OK, this looks good. Congratulations on ...
5 years, 9 months ago (2015-03-06 21:33:25 UTC) #18
Daniel Erat
https://codereview.chromium.org/706993003/diff/140001/components/timers/alarm_timer.cc File components/timers/alarm_timer.cc (right): https://codereview.chromium.org/706993003/diff/140001/components/timers/alarm_timer.cc#newcode7 components/timers/alarm_timer.cc:7: #include <sys/timerfd.h> trying to remember the background here. this ...
5 years, 9 months ago (2015-03-09 16:09:47 UTC) #19
Chirantan Ekbote
ptal https://codereview.chromium.org/706993003/diff/140001/components/timers/alarm_timer.cc File components/timers/alarm_timer.cc (right): https://codereview.chromium.org/706993003/diff/140001/components/timers/alarm_timer.cc#newcode7 components/timers/alarm_timer.cc:7: #include <sys/timerfd.h> On 2015/03/09 16:09:47, Daniel Erat wrote: ...
5 years, 9 months ago (2015-03-13 20:43:44 UTC) #20
Nicolas Zea
gcm LGTM
5 years, 9 months ago (2015-03-13 23:53:47 UTC) #21
Daniel Erat
generally lgtm with a few comments. if there are more questions i might not be ...
5 years, 9 months ago (2015-03-14 14:02:33 UTC) #22
Chirantan Ekbote
https://codereview.chromium.org/706993003/diff/140001/components/timers/alarm_timer.cc File components/timers/alarm_timer.cc (right): https://codereview.chromium.org/706993003/diff/140001/components/timers/alarm_timer.cc#newcode7 components/timers/alarm_timer.cc:7: #include <sys/timerfd.h> On 2015/03/14 14:02:33, Daniel Erat wrote: > ...
5 years, 8 months ago (2015-04-07 01:16:07 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/706993003/180001
5 years, 8 months ago (2015-04-07 01:16:57 UTC) #26
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 8 months ago (2015-04-07 02:28:02 UTC) #27
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/05e4d854dca737cfb43cd967cd72d024f6b1625b Cr-Commit-Position: refs/heads/master@{#324004}
5 years, 8 months ago (2015-04-07 02:28:55 UTC) #28
falken
5 years, 8 months ago (2015-04-07 03:29:18 UTC) #29
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/1058693003/ by falken@chromium.org.

The reason for reverting is: It looks like this broke tests the following tests
on Linux Chromium OS:
AlarmTimerTest.OneShotTimerConcurrentResetAndTimerFired
AlarmTimerTest.RepeatingTimerConcurrentResetAndTimerFired

Example output:
AlarmTimerTest.OneShotTimerConcurrentResetAndTimerFired (run #1):
[ RUN      ] AlarmTimerTest.OneShotTimerConcurrentResetAndTimerFired
[11334:11334:0406/201742:404219967:INFO:alarm_timer_chromeos.cc(166)]
CLOCK_REALTIME_ALARM not supported on this system: Invalid argument
[11334:11334:0406/201742:404230154:FATAL:timer.cc(116)] Check failed:
!user_task_.is_null().

AlarmTimerTest.RepeatingTimerConcurrentResetAndTimerFired (run #1):
[ RUN      ] AlarmTimerTest.RepeatingTimerConcurrentResetAndTimerFired
[11382:11382:0406/201748:411022458:INFO:alarm_timer_chromeos.cc(166)]
CLOCK_REALTIME_ALARM not supported on this system: Invalid argument
../../components/timers/alarm_timer_unittest.cc:469: Failure
Value of: did_run
  Actual: true
Expected: false

Example build:
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2....

Powered by Google App Engine
This is Rietveld 408576698