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

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

Issue 6350010: Put some plug-ins behind an infobar, where they have:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 } 630 }
631 631
632 void BrowserRenderProcessHost::PropagateBrowserCommandLineToRenderer( 632 void BrowserRenderProcessHost::PropagateBrowserCommandLineToRenderer(
633 const CommandLine& browser_cmd, 633 const CommandLine& browser_cmd,
634 CommandLine* renderer_cmd) const { 634 CommandLine* renderer_cmd) const {
635 // Propagate the following switches to the renderer command line (along 635 // Propagate the following switches to the renderer command line (along
636 // with any associated values) if present in the browser command line. 636 // with any associated values) if present in the browser command line.
637 static const char* const kSwitchNames[] = { 637 static const char* const kSwitchNames[] = {
638 switches::kAllowOutdatedPlugins, 638 switches::kAllowOutdatedPlugins,
639 switches::kAllowScriptingGallery, 639 switches::kAllowScriptingGallery,
640 switches::kAlwaysAuthorizePlugins,
640 switches::kAppsGalleryURL, 641 switches::kAppsGalleryURL,
641 // We propagate the Chrome Frame command line here as well in case the 642 // We propagate the Chrome Frame command line here as well in case the
642 // renderer is not run in the sandbox. 643 // renderer is not run in the sandbox.
643 switches::kChromeFrame, 644 switches::kChromeFrame,
644 switches::kDebugPrint, 645 switches::kDebugPrint,
645 switches::kDisable3DAPIs, 646 switches::kDisable3DAPIs,
646 switches::kDisableAcceleratedCompositing, 647 switches::kDisableAcceleratedCompositing,
647 switches::kDisableApplicationCache, 648 switches::kDisableApplicationCache,
648 switches::kDisableAudio, 649 switches::kDisableAudio,
649 switches::kDisableBreakpad, 650 switches::kDisableBreakpad,
(...skipping 627 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