summaryrefslogtreecommitdiffstats
path: root/chrome/app/chrome_main_delegate.h
diff options
context:
space:
mode:
authoryiyaoliu <yiyaoliu@chromium.org>2015-03-18 11:04:37 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-18 18:05:50 +0000
commit9e6a5ab378cec3edf0eeba1b6867db055d32d2a7 (patch)
tree4795477d078e8ef6191acb8333ef24da38d0957f /chrome/app/chrome_main_delegate.h
parentad1d819ed2a3bdf26218f9160b94d02506dd49a0 (diff)
downloadchromium_src-9e6a5ab378cec3edf0eeba1b6867db055d32d2a7.zip
chromium_src-9e6a5ab378cec3edf0eeba1b6867db055d32d2a7.tar.gz
chromium_src-9e6a5ab378cec3edf0eeba1b6867db055d32d2a7.tar.bz2
Profiler-instrumentation of the startup time.
Profiler recording is enabled right after command line is initialized. (We need command line to be initialized because we need get channel info first to determine whether or not to enable profiling). function is added inside ChromeMainDelegate and will be called from content. BUG=453640 Review URL: https://codereview.chromium.org/999883002 Cr-Commit-Position: refs/heads/master@{#321166}
Diffstat (limited to 'chrome/app/chrome_main_delegate.h')
-rw-r--r--chrome/app/chrome_main_delegate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/app/chrome_main_delegate.h b/chrome/app/chrome_main_delegate.h
index a408612..7792f53 100644
--- a/chrome/app/chrome_main_delegate.h
+++ b/chrome/app/chrome_main_delegate.h
@@ -41,6 +41,7 @@ class ChromeMainDelegate : public content::ContentMainDelegate {
ScopedVector<content::ZygoteForkDelegate>* delegates) override;
void ZygoteForked() override;
#endif
+ bool ShouldEnableProfilerRecording() override;
content::ContentBrowserClient* CreateContentBrowserClient() override;
content::ContentPluginClient* CreateContentPluginClient() override;