| 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 <memory> | 10 #include <memory> | 
| 11 #include <string> | 11 #include <string> | 
| 12 | 12 | 
| 13 #include "base/bind.h" | 13 #include "base/bind.h" | 
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" | 
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" | 
| 16 #include "base/files/file_util.h" | 16 #include "base/files/file_util.h" | 
| 17 #include "base/metrics/histogram_macros.h" | 17 #include "base/metrics/histogram_macros.h" | 
| 18 #include "base/path_service.h" | 18 #include "base/path_service.h" | 
| 19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" | 
| 20 #include "base/strings/stringprintf.h" |  | 
| 21 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" | 
| 22 #include "base/time/time.h" | 21 #include "base/time/time.h" | 
| 23 #include "build/build_config.h" | 22 #include "build/build_config.h" | 
| 24 #include "chrome/browser/about_flags.h" | 23 #include "chrome/browser/about_flags.h" | 
| 25 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" | 
| 26 #include "chrome/browser/lifetime/application_lifetime.h" | 25 #include "chrome/browser/lifetime/application_lifetime.h" | 
| 27 #include "chrome/browser/profiles/profile_manager.h" | 26 #include "chrome/browser/profiles/profile_manager.h" | 
| 28 #include "chrome/browser/profiles/profile_metrics.h" | 27 #include "chrome/browser/profiles/profile_metrics.h" | 
| 29 #include "chrome/common/chrome_paths.h" | 28 #include "chrome/common/chrome_paths.h" | 
| 30 #include "chrome/common/chrome_switches.h" | 29 #include "chrome/common/chrome_switches.h" | 
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 379     base::trace_event::TraceConfig trace_config( | 378     base::trace_event::TraceConfig trace_config( | 
| 380         command_line.GetSwitchValueASCII(switches::kTraceShutdown), ""); | 379         command_line.GetSwitchValueASCII(switches::kTraceShutdown), ""); | 
| 381     content::TracingController::GetInstance()->StartTracing( | 380     content::TracingController::GetInstance()->StartTracing( | 
| 382         trace_config, | 381         trace_config, | 
| 383         content::TracingController::StartTracingDoneCallback()); | 382         content::TracingController::StartTracingDoneCallback()); | 
| 384   } | 383   } | 
| 385   TRACE_EVENT0("shutdown", "StartShutdownTracing"); | 384   TRACE_EVENT0("shutdown", "StartShutdownTracing"); | 
| 386 } | 385 } | 
| 387 | 386 | 
| 388 }  // namespace browser_shutdown | 387 }  // namespace browser_shutdown | 
| OLD | NEW | 
|---|