Chromium Code Reviews| Index: base/timer/timer.h |
| diff --git a/base/timer/timer.h b/base/timer/timer.h |
| index 50aedbd4cec28e97c408b2acd8b896c70526732c..8aac279def647771f7cead12876c2ea06e4fddcf 100644 |
| --- a/base/timer/timer.h |
| +++ b/base/timer/timer.h |
| @@ -163,8 +163,10 @@ class BASE_EXPORT Timer { |
| // Stop running task (if any) and abandon scheduled task (if any). |
| void StopAndAbandon() { |
| - Stop(); |
| AbandonScheduledTask(); |
| + |
| + Stop(); |
| + // No more member accesses here: |this| could be deleted at this point. |
| } |
| // When non-NULL, the scheduled_task_ is waiting in the MessageLoop to call |