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

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

Issue 4276004: Remove no more needed js-flags passed to renderer process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | « no previous file | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 if (gdi_init_lpk) { 139 if (gdi_init_lpk) {
140 gdi_init_lpk(0); 140 gdi_init_lpk(0);
141 } 141 }
142 } 142 }
143 #endif 143 #endif
144 144
145 // Out of process dev tools rely upon auto break behavior. 145 // Out of process dev tools rely upon auto break behavior.
146 webkit_glue::SetJavaScriptFlags( 146 webkit_glue::SetJavaScriptFlags(
147 "--debugger-auto-break" 147 "--debugger-auto-break"
148 // Enable lazy in-memory profiling. 148 // Enable lazy in-memory profiling.
149 " --prof --prof-lazy --logfile=* --compress-log"); 149 " --prof --prof-lazy");
150 150
151 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 151 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
152 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { 152 if (command_line.HasSwitch(switches::kJavaScriptFlags)) {
153 webkit_glue::SetJavaScriptFlags( 153 webkit_glue::SetJavaScriptFlags(
154 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags)); 154 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags));
155 } 155 }
156 156
157 if (command_line.HasSwitch(switches::kEnableWatchdog)) { 157 if (command_line.HasSwitch(switches::kEnableWatchdog)) {
158 // TODO(JAR): Need to implement renderer IO msgloop watchdog. 158 // TODO(JAR): Need to implement renderer IO msgloop watchdog.
159 } 159 }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 } 366 }
367 367
368 void RenderProcessImpl::ClearTransportDIBCache() { 368 void RenderProcessImpl::ClearTransportDIBCache() {
369 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { 369 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) {
370 if (shared_mem_cache_[i]) { 370 if (shared_mem_cache_[i]) {
371 FreeTransportDIB(shared_mem_cache_[i]); 371 FreeTransportDIB(shared_mem_cache_[i]);
372 shared_mem_cache_[i] = NULL; 372 shared_mem_cache_[i] = NULL;
373 } 373 }
374 } 374 }
375 } 375 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698