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

Side by Side Diff: content/renderer/render_process_impl.cc

Issue 9307062: Do not use setDartFlags API as we're now passing flags by other means. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « content/public/common/content_switches.cc ('k') | webkit/glue/webkit_glue.h » ('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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <objidl.h> 9 #include <objidl.h>
10 #include <mlang.h> 10 #include <mlang.h>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 webkit_glue::SetJavaScriptFlags( 64 webkit_glue::SetJavaScriptFlags(
65 "--debugger-auto-break" 65 "--debugger-auto-break"
66 // Enable on-demand profiling. 66 // Enable on-demand profiling.
67 " --prof --prof-lazy"); 67 " --prof --prof-lazy");
68 68
69 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 69 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
70 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { 70 if (command_line.HasSwitch(switches::kJavaScriptFlags)) {
71 webkit_glue::SetJavaScriptFlags( 71 webkit_glue::SetJavaScriptFlags(
72 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags)); 72 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags));
73 } 73 }
74
75 if (command_line.HasSwitch(switches::kDartFlags)) {
76 webkit_glue::SetDartFlags(
77 command_line.GetSwitchValueASCII(switches::kDartFlags));
78 }
79 } 74 }
80 75
81 RenderProcessImpl::~RenderProcessImpl() { 76 RenderProcessImpl::~RenderProcessImpl() {
82 // TODO(port): Try and limit what we pull in for our non-Win unit test bundle. 77 // TODO(port): Try and limit what we pull in for our non-Win unit test bundle.
83 #ifndef NDEBUG 78 #ifndef NDEBUG
84 // log important leaked objects 79 // log important leaked objects
85 webkit_glue::CheckForLeaks(); 80 webkit_glue::CheckForLeaks();
86 #endif 81 #endif
87 82
88 GetShutDownEvent()->Signal(); 83 GetShutDownEvent()->Signal();
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 } 230 }
236 231
237 void RenderProcessImpl::ClearTransportDIBCache() { 232 void RenderProcessImpl::ClearTransportDIBCache() {
238 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { 233 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) {
239 if (shared_mem_cache_[i]) { 234 if (shared_mem_cache_[i]) {
240 FreeTransportDIB(shared_mem_cache_[i]); 235 FreeTransportDIB(shared_mem_cache_[i]);
241 shared_mem_cache_[i] = NULL; 236 shared_mem_cache_[i] = NULL;
242 } 237 }
243 } 238 }
244 } 239 }
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | webkit/glue/webkit_glue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698