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

Unified Diff: content/browser/tracing/tracing_controller_impl.cc

Issue 2101943004: content: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase/update 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/tracing/tracing_controller_browsertest.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tracing/tracing_controller_impl.cc
diff --git a/content/browser/tracing/tracing_controller_impl.cc b/content/browser/tracing/tracing_controller_impl.cc
index fd86696b6039998ec12e7f2d13f386db04dd8fca..3666955bdd06cc779194db5ce9f914689bf70d05 100644
--- a/content/browser/tracing/tracing_controller_impl.cc
+++ b/content/browser/tracing/tracing_controller_impl.cc
@@ -416,7 +416,7 @@ void TracingControllerImpl::OnStopTracingDone() {
pending_stop_tracing_filters_ = trace_message_filters_;
pending_stop_tracing_ack_count_ += additional_tracing_agents_.size();
- for (auto it : additional_tracing_agents_) {
+ for (auto* it : additional_tracing_agents_) {
it->StopAgentTracing(
base::Bind(&TracingControllerImpl::OnEndAgentTracingAcked,
base::Unretained(this)));
@@ -597,7 +597,7 @@ void TracingControllerImpl::RemoveTraceMessageFilter(
void TracingControllerImpl::AddTracingAgent(const std::string& agent_name) {
#if defined(OS_CHROMEOS)
- auto debug_daemon =
+ auto* debug_daemon =
chromeos::DBusThreadManager::Get()->GetDebugDaemonClient();
if (agent_name == debug_daemon->GetTracingAgentName()) {
additional_tracing_agents_.push_back(debug_daemon);
@@ -606,7 +606,7 @@ void TracingControllerImpl::AddTracingAgent(const std::string& agent_name) {
return;
}
#elif defined(OS_WIN)
- auto etw_agent = EtwTracingAgent::GetInstance();
+ auto* etw_agent = EtwTracingAgent::GetInstance();
if (agent_name == etw_agent->GetTracingAgentName()) {
additional_tracing_agents_.push_back(etw_agent);
return;
@@ -614,7 +614,7 @@ void TracingControllerImpl::AddTracingAgent(const std::string& agent_name) {
#endif
#if defined(ENABLE_POWER_TRACING)
- auto power_agent = PowerTracingAgent::GetInstance();
+ auto* power_agent = PowerTracingAgent::GetInstance();
if (agent_name == power_agent->GetTracingAgentName()) {
additional_tracing_agents_.push_back(power_agent);
return;
@@ -886,7 +886,7 @@ void TracingControllerImpl::IssueClockSyncMarker() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
DCHECK(pending_clock_sync_ack_count_ == 0);
- for (const auto& it : additional_tracing_agents_) {
+ for (auto* it : additional_tracing_agents_) {
if (it->SupportsExplicitClockSync()) {
it->RecordClockSyncMarker(
base::GenerateGUID(),
« no previous file with comments | « content/browser/tracing/tracing_controller_browsertest.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698