| Index: chrome/app/chrome_main_delegate.cc
|
| diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
|
| index e17bf8128a60481133fadce18f5e95458de29590..56284139bef8062f7bb32424bf0fc530a91536d5 100644
|
| --- a/chrome/app/chrome_main_delegate.cc
|
| +++ b/chrome/app/chrome_main_delegate.cc
|
| @@ -15,6 +15,7 @@
|
| #include "base/path_service.h"
|
| #include "base/process/memory.h"
|
| #include "base/process/process_handle.h"
|
| +#include "base/profiler/scoped_tracker.h"
|
| #include "base/strings/string_util.h"
|
| #include "build/build_config.h"
|
| #include "chrome/browser/chrome_content_browser_client.h"
|
| @@ -971,3 +972,17 @@ ChromeMainDelegate::CreateContentUtilityClient() {
|
| return g_chrome_content_utility_client.Pointer();
|
| #endif
|
| }
|
| +
|
| +bool ChromeMainDelegate::ShouldEnableProfilerRecording() {
|
| + switch (chrome::VersionInfo::GetChannel()) {
|
| + case chrome::VersionInfo::CHANNEL_UNKNOWN:
|
| + case chrome::VersionInfo::CHANNEL_CANARY:
|
| + return true;
|
| + case chrome::VersionInfo::CHANNEL_DEV:
|
| + case chrome::VersionInfo::CHANNEL_BETA:
|
| + case chrome::VersionInfo::CHANNEL_STABLE:
|
| + default:
|
| + // Don't enable instrumentation.
|
| + return false;
|
| + }
|
| +}
|
|
|