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

Side by Side Diff: chrome/app/chrome_main_delegate.cc

Issue 999883002: Profiler-instrumentation of the startup time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Correct format error. Created 5 years, 9 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
« no previous file with comments | « chrome/app/chrome_main_delegate.h ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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 }
OLDNEW
« no previous file with comments | « chrome/app/chrome_main_delegate.h ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698