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

Side by Side Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 6528016: Expose WebCore log channels on the chrome command line (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "chrome/browser/renderer_host/browser_render_process_host.h" 8 #include "chrome/browser/renderer_host/browser_render_process_host.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 switches::kSimpleDataSource, 734 switches::kSimpleDataSource,
735 switches::kTestSandbox, 735 switches::kTestSandbox,
736 // This flag needs to be propagated to the renderer process for 736 // This flag needs to be propagated to the renderer process for
737 // --in-process-webgl. 737 // --in-process-webgl.
738 switches::kUseGL, 738 switches::kUseGL,
739 switches::kUseLowFragHeapCrt, 739 switches::kUseLowFragHeapCrt,
740 switches::kUserAgent, 740 switches::kUserAgent,
741 switches::kV, 741 switches::kV,
742 switches::kVideoThreads, 742 switches::kVideoThreads,
743 switches::kVModule, 743 switches::kVModule,
744 switches::kWebCoreLogChannels,
744 }; 745 };
745 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 746 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
746 arraysize(kSwitchNames)); 747 arraysize(kSwitchNames));
747 748
748 // Disable databases in incognito mode. 749 // Disable databases in incognito mode.
749 if (profile()->IsOffTheRecord() && 750 if (profile()->IsOffTheRecord() &&
750 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { 751 !browser_cmd.HasSwitch(switches::kDisableDatabases)) {
751 renderer_cmd->AppendSwitch(switches::kDisableDatabases); 752 renderer_cmd->AppendSwitch(switches::kDisableDatabases);
752 } 753 }
753 754
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 IPC::PlatformFileForTransit file; 1278 IPC::PlatformFileForTransit file;
1278 #if defined(OS_POSIX) 1279 #if defined(OS_POSIX)
1279 file = base::FileDescriptor(model_file, false); 1280 file = base::FileDescriptor(model_file, false);
1280 #elif defined(OS_WIN) 1281 #elif defined(OS_WIN)
1281 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, 1282 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0,
1282 false, DUPLICATE_SAME_ACCESS); 1283 false, DUPLICATE_SAME_ACCESS);
1283 #endif 1284 #endif
1284 Send(new ViewMsg_SetPhishingModel(file)); 1285 Send(new ViewMsg_SetPhishingModel(file));
1285 } 1286 }
1286 } 1287 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698