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

Side by Side Diff: components/scheduler/base/time_domain.cc

Issue 2110663002: components: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+one fix Created 4 years, 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/scheduler/base/time_domain.h" 5 #include "components/scheduler/base/time_domain.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "components/scheduler/base/task_queue_impl.h" 9 #include "components/scheduler/base/task_queue_impl.h"
10 #include "components/scheduler/base/task_queue_manager_delegate.h" 10 #include "components/scheduler/base/task_queue_manager_delegate.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 return false; 193 return false;
194 194
195 *out_task_queue = delayed_wakeup_multimap_.begin()->second; 195 *out_task_queue = delayed_wakeup_multimap_.begin()->second;
196 return true; 196 return true;
197 } 197 }
198 198
199 void TimeDomain::AsValueInto(base::trace_event::TracedValue* state) const { 199 void TimeDomain::AsValueInto(base::trace_event::TracedValue* state) const {
200 state->BeginDictionary(); 200 state->BeginDictionary();
201 state->SetString("name", GetName()); 201 state->SetString("name", GetName());
202 state->BeginArray("updatable_queue_set"); 202 state->BeginArray("updatable_queue_set");
203 for (auto& queue : updatable_queue_set_) 203 for (auto* queue : updatable_queue_set_)
204 state->AppendString(queue->GetName()); 204 state->AppendString(queue->GetName());
205 state->EndArray(); 205 state->EndArray();
206 state->SetInteger("registered_delay_count", delayed_wakeup_multimap_.size()); 206 state->SetInteger("registered_delay_count", delayed_wakeup_multimap_.size());
207 if (!delayed_wakeup_multimap_.empty()) { 207 if (!delayed_wakeup_multimap_.empty()) {
208 base::TimeDelta delay = delayed_wakeup_multimap_.begin()->first - Now(); 208 base::TimeDelta delay = delayed_wakeup_multimap_.begin()->first - Now();
209 state->SetDouble("next_delay_ms", delay.InMillisecondsF()); 209 state->SetDouble("next_delay_ms", delay.InMillisecondsF());
210 } 210 }
211 AsValueIntoInternal(state); 211 AsValueIntoInternal(state);
212 state->EndDictionary(); 212 state->EndDictionary();
213 } 213 }
214 214
215 } // namespace scheduler 215 } // namespace scheduler
OLDNEW
« no previous file with comments | « components/scheduler/base/task_queue_manager.cc ('k') | components/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698