| 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> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
| 16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram_macros.h" |
| 17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
| 18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
| 19 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
| 20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
| 21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
| 23 #include "chrome/browser/about_flags.h" | 23 #include "chrome/browser/about_flags.h" |
| 24 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
| 25 #include "chrome/browser/lifetime/application_lifetime.h" | 25 #include "chrome/browser/lifetime/application_lifetime.h" |
| 26 #include "chrome/browser/profiles/profile_manager.h" | 26 #include "chrome/browser/profiles/profile_manager.h" |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 base::trace_event::TraceConfig trace_config( | 366 base::trace_event::TraceConfig trace_config( |
| 367 command_line.GetSwitchValueASCII(switches::kTraceShutdown), ""); | 367 command_line.GetSwitchValueASCII(switches::kTraceShutdown), ""); |
| 368 content::TracingController::GetInstance()->StartTracing( | 368 content::TracingController::GetInstance()->StartTracing( |
| 369 trace_config, | 369 trace_config, |
| 370 content::TracingController::StartTracingDoneCallback()); | 370 content::TracingController::StartTracingDoneCallback()); |
| 371 } | 371 } |
| 372 TRACE_EVENT0("shutdown", "StartShutdownTracing"); | 372 TRACE_EVENT0("shutdown", "StartShutdownTracing"); |
| 373 } | 373 } |
| 374 | 374 |
| 375 } // namespace browser_shutdown | 375 } // namespace browser_shutdown |
| OLD | NEW |