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

Side by Side Diff: content/browser/tracing/background_tracing_manager_impl.cc

Issue 1426803004: Made the NavigationTracingObserver always be active whenever background tracing is active (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@random_triggers
Patch Set: Created 5 years, 1 month 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 "content/browser/tracing/background_tracing_manager_impl.h" 5 #include "content/browser/tracing/background_tracing_manager_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/cpu.h" 8 #include "base/cpu.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 config_->disable_blink_features()); 198 config_->disable_blink_features());
199 } 199 }
200 } 200 }
201 201
202 EnableRecordingIfConfigNeedsIt(); 202 EnableRecordingIfConfigNeedsIt();
203 203
204 RecordBackgroundTracingMetric(SCENARIO_ACTIVATED_SUCCESSFULLY); 204 RecordBackgroundTracingMetric(SCENARIO_ACTIVATED_SUCCESSFULLY);
205 return true; 205 return true;
206 } 206 }
207 207
208 bool BackgroundTracingManagerImpl::HasActiveScenarioForTesting() { 208 bool BackgroundTracingManagerImpl::HasActiveScenario() {
209 return config_; 209 return config_;
210 } 210 }
211 211
212 bool BackgroundTracingManagerImpl::IsTracingForTesting() { 212 bool BackgroundTracingManagerImpl::IsTracingForTesting() {
213 return is_tracing_; 213 return is_tracing_;
214 } 214 }
215 215
216 void BackgroundTracingManagerImpl::ValidateStartupScenario() { 216 void BackgroundTracingManagerImpl::ValidateStartupScenario() {
217 if (!config_ || !delegate_) 217 if (!config_ || !delegate_)
218 return; 218 return;
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 "disabled-by-default-toplevel.flow," 592 "disabled-by-default-toplevel.flow,"
593 "disabled-by-default-ipc.flow"; 593 "disabled-by-default-ipc.flow";
594 case BackgroundTracingConfigImpl::CategoryPreset::BLINK_STYLE: 594 case BackgroundTracingConfigImpl::CategoryPreset::BLINK_STYLE:
595 return "blink_style"; 595 return "blink_style";
596 } 596 }
597 NOTREACHED(); 597 NOTREACHED();
598 return ""; 598 return "";
599 } 599 }
600 600
601 } // namspace content 601 } // namspace content
OLDNEW
« no previous file with comments | « content/browser/tracing/background_tracing_manager_impl.h ('k') | content/public/browser/background_tracing_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698