| 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/chrome_browser_main.h" | 5 #include "chrome/browser/chrome_browser_main.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 parsed_command_line())); | 936 parsed_command_line())); |
| 937 } | 937 } |
| 938 | 938 |
| 939 if (parsed_command_line().HasSwitch(switches::kEnableProfiling)) { | 939 if (parsed_command_line().HasSwitch(switches::kEnableProfiling)) { |
| 940 TRACE_EVENT0("startup", | 940 TRACE_EVENT0("startup", |
| 941 "ChromeBrowserMainParts::PreCreateThreadsImpl:InitProfiling"); | 941 "ChromeBrowserMainParts::PreCreateThreadsImpl:InitProfiling"); |
| 942 // User wants to override default tracking status. | 942 // User wants to override default tracking status. |
| 943 std::string flag = | 943 std::string flag = |
| 944 parsed_command_line().GetSwitchValueASCII(switches::kEnableProfiling); | 944 parsed_command_line().GetSwitchValueASCII(switches::kEnableProfiling); |
| 945 // Default to basic profiling (no parent child support). | 945 // Default to basic profiling (no parent child support). |
| 946 tracked_objects::ThreadData::Status status = | 946 tracked_objects::ThreadData::ThreadStatus status = |
| 947 tracked_objects::ThreadData::PROFILING_ACTIVE; | 947 tracked_objects::ThreadData::PROFILING_ACTIVE; |
| 948 if (flag.compare("0") != 0) | 948 if (flag.compare("0") != 0) |
| 949 status = tracked_objects::ThreadData::DEACTIVATED; | 949 status = tracked_objects::ThreadData::DEACTIVATED; |
| 950 tracked_objects::ThreadData::InitializeAndSetTrackingStatus(status); | 950 tracked_objects::ThreadData::InitializeAndSetTrackingStatus(status); |
| 951 } | 951 } |
| 952 | 952 |
| 953 local_state_ = InitializeLocalState( | 953 local_state_ = InitializeLocalState( |
| 954 local_state_task_runner.get(), parsed_command_line()); | 954 local_state_task_runner.get(), parsed_command_line()); |
| 955 | 955 |
| 956 #if !defined(OS_ANDROID) | 956 #if !defined(OS_ANDROID) |
| (...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1994 chromeos::CrosSettings::Shutdown(); | 1994 chromeos::CrosSettings::Shutdown(); |
| 1995 #endif // defined(OS_CHROMEOS) | 1995 #endif // defined(OS_CHROMEOS) |
| 1996 #endif // defined(OS_ANDROID) | 1996 #endif // defined(OS_ANDROID) |
| 1997 } | 1997 } |
| 1998 | 1998 |
| 1999 // Public members: | 1999 // Public members: |
| 2000 | 2000 |
| 2001 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { | 2001 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { |
| 2002 chrome_extra_parts_.push_back(parts); | 2002 chrome_extra_parts_.push_back(parts); |
| 2003 } | 2003 } |
| OLD | NEW |