| 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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 ChromeMainDelegate::CreateContentUtilityClient() { | 974 ChromeMainDelegate::CreateContentUtilityClient() { |
| 975 #if defined(CHROME_MULTIPLE_DLL_BROWSER) | 975 #if defined(CHROME_MULTIPLE_DLL_BROWSER) |
| 976 return NULL; | 976 return NULL; |
| 977 #else | 977 #else |
| 978 return g_chrome_content_utility_client.Pointer(); | 978 return g_chrome_content_utility_client.Pointer(); |
| 979 #endif | 979 #endif |
| 980 } | 980 } |
| 981 | 981 |
| 982 bool ChromeMainDelegate::ShouldEnableProfilerRecording() { | 982 bool ChromeMainDelegate::ShouldEnableProfilerRecording() { |
| 983 switch (chrome::VersionInfo::GetChannel()) { | 983 switch (chrome::VersionInfo::GetChannel()) { |
| 984 case chrome::VersionInfo::CHANNEL_UNKNOWN: | 984 case version_info::Channel::UNKNOWN: |
| 985 case chrome::VersionInfo::CHANNEL_CANARY: | 985 case version_info::Channel::CANARY: |
| 986 return true; | 986 return true; |
| 987 case chrome::VersionInfo::CHANNEL_DEV: | 987 case version_info::Channel::DEV: |
| 988 case chrome::VersionInfo::CHANNEL_BETA: | 988 case version_info::Channel::BETA: |
| 989 case chrome::VersionInfo::CHANNEL_STABLE: | 989 case version_info::Channel::STABLE: |
| 990 default: | 990 default: |
| 991 // Don't enable instrumentation. | 991 // Don't enable instrumentation. |
| 992 return false; | 992 return false; |
| 993 } | 993 } |
| 994 } | 994 } |
| OLD | NEW |