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

Side by Side Diff: chrome/browser/browser_shutdown.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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 (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.h"
17 #include "base/path_service.h" 17 #include "base/path_service.h"
18 #include "base/prefs/pref_registry_simple.h"
19 #include "base/prefs/pref_service.h"
20 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
21 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
22 #include "base/threading/thread.h" 20 #include "base/threading/thread.h"
23 #include "base/time/time.h" 21 #include "base/time/time.h"
24 #include "build/build_config.h" 22 #include "build/build_config.h"
25 #include "chrome/browser/about_flags.h" 23 #include "chrome/browser/about_flags.h"
26 #include "chrome/browser/browser_process.h" 24 #include "chrome/browser/browser_process.h"
27 #include "chrome/browser/lifetime/application_lifetime.h" 25 #include "chrome/browser/lifetime/application_lifetime.h"
28 #include "chrome/browser/profiles/profile_manager.h" 26 #include "chrome/browser/profiles/profile_manager.h"
29 #include "chrome/browser/profiles/profile_metrics.h" 27 #include "chrome/browser/profiles/profile_metrics.h"
30 #include "chrome/common/chrome_paths.h" 28 #include "chrome/common/chrome_paths.h"
31 #include "chrome/common/chrome_switches.h" 29 #include "chrome/common/chrome_switches.h"
32 #include "chrome/common/crash_keys.h" 30 #include "chrome/common/crash_keys.h"
33 #include "chrome/common/pref_names.h" 31 #include "chrome/common/pref_names.h"
34 #include "chrome/common/switch_utils.h" 32 #include "chrome/common/switch_utils.h"
35 #include "components/metrics/metrics_service.h" 33 #include "components/metrics/metrics_service.h"
34 #include "components/prefs/pref_registry_simple.h"
35 #include "components/prefs/pref_service.h"
36 #include "components/tracing/tracing_switches.h" 36 #include "components/tracing/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
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 base::trace_event::TraceConfig trace_config( 358 base::trace_event::TraceConfig trace_config(
359 command_line.GetSwitchValueASCII(switches::kTraceShutdown), ""); 359 command_line.GetSwitchValueASCII(switches::kTraceShutdown), "");
360 content::TracingController::GetInstance()->StartTracing( 360 content::TracingController::GetInstance()->StartTracing(
361 trace_config, 361 trace_config,
362 content::TracingController::StartTracingDoneCallback()); 362 content::TracingController::StartTracingDoneCallback());
363 } 363 }
364 TRACE_EVENT0("shutdown", "StartShutdownTracing"); 364 TRACE_EVENT0("shutdown", "StartShutdownTracing");
365 } 365 }
366 366
367 } // namespace browser_shutdown 367 } // namespace browser_shutdown
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/browsing_data/autofill_counter_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698