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

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 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 switches::kEnableRemoting, 725 switches::kEnableRemoting,
726 switches::kEnableClickToPlay, 726 switches::kEnableClickToPlay,
727 switches::kEnableResourceContentSettings, 727 switches::kEnableResourceContentSettings,
728 switches::kEnableAcceleratedDecoding, 728 switches::kEnableAcceleratedDecoding,
729 switches::kDisableFileSystem, 729 switches::kDisableFileSystem,
730 switches::kPpapiOutOfProcess, 730 switches::kPpapiOutOfProcess,
731 switches::kEnablePrintPreview, 731 switches::kEnablePrintPreview,
732 switches::kEnableCrxlessWebApps, 732 switches::kEnableCrxlessWebApps,
733 switches::kDisable3DAPIs, 733 switches::kDisable3DAPIs,
734 switches::kEnableInBrowserThumbnailing, 734 switches::kEnableInBrowserThumbnailing,
735 switches::kAlwaysAuthorizePlugins,
735 switches::kEnableWebAudio, 736 switches::kEnableWebAudio,
736 }; 737 };
737 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames, 738 renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
738 arraysize(kSwitchNames)); 739 arraysize(kSwitchNames));
739 740
740 // Disable databases in incognito mode. 741 // Disable databases in incognito mode.
741 if (profile()->IsOffTheRecord() && 742 if (profile()->IsOffTheRecord() &&
742 !browser_cmd.HasSwitch(switches::kDisableDatabases)) { 743 !browser_cmd.HasSwitch(switches::kDisableDatabases)) {
743 renderer_cmd->AppendSwitch(switches::kDisableDatabases); 744 renderer_cmd->AppendSwitch(switches::kDisableDatabases);
744 } 745 }
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 IPC::PlatformFileForTransit file; 1293 IPC::PlatformFileForTransit file;
1293 #if defined(OS_POSIX) 1294 #if defined(OS_POSIX)
1294 file = base::FileDescriptor(model_file, false); 1295 file = base::FileDescriptor(model_file, false);
1295 #elif defined(OS_WIN) 1296 #elif defined(OS_WIN)
1296 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0, 1297 ::DuplicateHandle(::GetCurrentProcess(), model_file, GetHandle(), &file, 0,
1297 false, DUPLICATE_SAME_ACCESS); 1298 false, DUPLICATE_SAME_ACCESS);
1298 #endif 1299 #endif
1299 Send(new ViewMsg_SetPhishingModel(file)); 1300 Send(new ViewMsg_SetPhishingModel(file));
1300 } 1301 }
1301 } 1302 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698