OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/browser_shutdown.h" | 5 #include "chrome/browser/browser_shutdown.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "chrome/browser/profiles/profile_manager.h" | 26 #include "chrome/browser/profiles/profile_manager.h" |
27 #include "chrome/browser/profiles/profile_metrics.h" | 27 #include "chrome/browser/profiles/profile_metrics.h" |
28 #include "chrome/common/chrome_paths.h" | 28 #include "chrome/common/chrome_paths.h" |
29 #include "chrome/common/chrome_switches.h" | 29 #include "chrome/common/chrome_switches.h" |
30 #include "chrome/common/crash_keys.h" | 30 #include "chrome/common/crash_keys.h" |
31 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" |
32 #include "chrome/common/switch_utils.h" | 32 #include "chrome/common/switch_utils.h" |
33 #include "components/metrics/metrics_service.h" | 33 #include "components/metrics/metrics_service.h" |
34 #include "components/prefs/pref_registry_simple.h" | 34 #include "components/prefs/pref_registry_simple.h" |
35 #include "components/prefs/pref_service.h" | 35 #include "components/prefs/pref_service.h" |
36 #include "components/tracing/tracing_switches.h" | 36 #include "components/tracing/common/tracing_switches.h" |
37 #include "content/public/browser/browser_thread.h" | 37 #include "content/public/browser/browser_thread.h" |
38 #include "content/public/browser/render_process_host.h" | 38 #include "content/public/browser/render_process_host.h" |
39 #include "content/public/browser/tracing_controller.h" | 39 #include "content/public/browser/tracing_controller.h" |
40 | 40 |
41 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
42 #include "chrome/browser/browser_util_win.h" | 42 #include "chrome/browser/browser_util_win.h" |
43 #include "chrome/browser/first_run/upgrade_util_win.h" | 43 #include "chrome/browser/first_run/upgrade_util_win.h" |
44 #endif | 44 #endif |
45 | 45 |
46 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 46 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 base::trace_event::TraceConfig trace_config( | 342 base::trace_event::TraceConfig trace_config( |
343 command_line.GetSwitchValueASCII(switches::kTraceShutdown), ""); | 343 command_line.GetSwitchValueASCII(switches::kTraceShutdown), ""); |
344 content::TracingController::GetInstance()->StartTracing( | 344 content::TracingController::GetInstance()->StartTracing( |
345 trace_config, | 345 trace_config, |
346 content::TracingController::StartTracingDoneCallback()); | 346 content::TracingController::StartTracingDoneCallback()); |
347 } | 347 } |
348 TRACE_EVENT0("shutdown", "StartShutdownTracing"); | 348 TRACE_EVENT0("shutdown", "StartShutdownTracing"); |
349 } | 349 } |
350 | 350 |
351 } // namespace browser_shutdown | 351 } // namespace browser_shutdown |
OLD | NEW |