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/app/chrome_main_delegate.h" | 5 #include "chrome/app/chrome_main_delegate.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/cpu.h" | 9 #include "base/cpu.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 } | 964 } |
965 | 965 |
966 content::ContentUtilityClient* | 966 content::ContentUtilityClient* |
967 ChromeMainDelegate::CreateContentUtilityClient() { | 967 ChromeMainDelegate::CreateContentUtilityClient() { |
968 #if defined(CHROME_MULTIPLE_DLL_BROWSER) | 968 #if defined(CHROME_MULTIPLE_DLL_BROWSER) |
969 return NULL; | 969 return NULL; |
970 #else | 970 #else |
971 return g_chrome_content_utility_client.Pointer(); | 971 return g_chrome_content_utility_client.Pointer(); |
972 #endif | 972 #endif |
973 } | 973 } |
| 974 |
| 975 bool ChromeMainDelegate::ShouldEnableProfilerRecording() { |
| 976 switch (chrome::VersionInfo::GetChannel()) { |
| 977 case chrome::VersionInfo::CHANNEL_UNKNOWN: |
| 978 case chrome::VersionInfo::CHANNEL_CANARY: |
| 979 return true; |
| 980 case chrome::VersionInfo::CHANNEL_DEV: |
| 981 case chrome::VersionInfo::CHANNEL_BETA: |
| 982 case chrome::VersionInfo::CHANNEL_STABLE: |
| 983 default: |
| 984 // Don't enable instrumentation. |
| 985 return false; |
| 986 } |
| 987 } |
OLD | NEW |