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

Side by Side Diff: base/deferred_sequenced_task_runner.cc

Issue 23511006: [Coverity ]Init uninitialized member in ctor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/deferred_sequenced_task_runner.h" 5 #include "base/deferred_sequenced_task_runner.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace base { 10 namespace base {
11 11
12 DeferredSequencedTaskRunner::DeferredTask::DeferredTask() { 12 DeferredSequencedTaskRunner::DeferredTask::DeferredTask()
13 : is_non_nestable(false) {
13 } 14 }
14 15
15 DeferredSequencedTaskRunner::DeferredTask::~DeferredTask() { 16 DeferredSequencedTaskRunner::DeferredTask::~DeferredTask() {
16 } 17 }
17 18
18 DeferredSequencedTaskRunner::DeferredSequencedTaskRunner( 19 DeferredSequencedTaskRunner::DeferredSequencedTaskRunner(
19 const scoped_refptr<SequencedTaskRunner>& target_task_runner) 20 const scoped_refptr<SequencedTaskRunner>& target_task_runner)
20 : started_(false), 21 : started_(false),
21 target_task_runner_(target_task_runner) { 22 target_task_runner_(target_task_runner) {
22 } 23 }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 91 }
91 // Replace the i-th element in the |deferred_tasks_queue_| with an empty 92 // Replace the i-th element in the |deferred_tasks_queue_| with an empty
92 // |DelayedTask| to ensure that |task| is destroyed before the next task 93 // |DelayedTask| to ensure that |task| is destroyed before the next task
93 // is posted. 94 // is posted.
94 *i = DeferredTask(); 95 *i = DeferredTask();
95 } 96 }
96 deferred_tasks_queue_.clear(); 97 deferred_tasks_queue_.clear();
97 } 98 }
98 99
99 } // namespace base 100 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698