Chromium Code Reviews| Index: content/renderer/renderer_main_platform_delegate_win.cc |
| =================================================================== |
| --- content/renderer/renderer_main_platform_delegate_win.cc (revision 199089) |
| +++ content/renderer/renderer_main_platform_delegate_win.cc (working copy) |
| @@ -18,6 +18,10 @@ |
| #include "third_party/icu/public/i18n/unicode/timezone.h" |
| #include "third_party/skia/include/ports/SkTypeface_win.h" |
| +#ifdef ENABLE_VTUNE_JIT_INTERFACE |
| +#include "v8/src/third_party/vtune/v8-vtune.h" |
| +#endif |
| + |
| namespace content { |
| namespace { |
| @@ -79,9 +83,17 @@ |
| InitExitInterceptions(); |
| + const CommandLine& command_line = parameters_.command_line; |
| + |
| +#ifdef ENABLE_VTUNE_JIT_INTERFACE |
| + // If user enables vtune support, the initialization of vtune support |
| + // is invoked so that the required call-back function is registered in V8. |
| + if (ommand_line.HasSwitch(switches::kEnableVtune)) |
|
Avi (use Gerrit)
2013/05/10 18:20:47
This line still has a typo. Please fix it. I will
|
| + vTune::InitializeVtuneForV8(); |
| +#endif |
| + |
| // Be mindful of what resources you acquire here. They can be used by |
| // malicious code if the renderer gets compromised. |
| - const CommandLine& command_line = parameters_.command_line; |
| bool no_sandbox = command_line.HasSwitch(switches::kNoSandbox); |
| if (!no_sandbox) { |