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 21 matching lines...) Expand all Loading... |
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/common/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" | |
43 #include "chrome/browser/first_run/upgrade_util_win.h" | 42 #include "chrome/browser/first_run/upgrade_util_win.h" |
| 43 #include "chrome/browser/win/browser_util.h" |
44 #endif | 44 #endif |
45 | 45 |
46 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 46 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
47 #include "chrome/browser/first_run/upgrade_util.h" | 47 #include "chrome/browser/first_run/upgrade_util.h" |
48 #endif | 48 #endif |
49 | 49 |
50 #if defined(ENABLE_RLZ) | 50 #if defined(ENABLE_RLZ) |
51 #include "components/rlz/rlz_tracker.h" | 51 #include "components/rlz/rlz_tracker.h" |
52 #endif | 52 #endif |
53 | 53 |
(...skipping 288 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 |