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

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

Issue 3074005: Move click-to-play behind the --enable-click-to-play switch. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Created 10 years, 4 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
« no previous file with comments | « no previous file | chrome/common/chrome_switches.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) 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 // 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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 switches::kEnableGLSLTranslator, 570 switches::kEnableGLSLTranslator,
571 switches::kInProcessWebGL, 571 switches::kInProcessWebGL,
572 #if defined(OS_MACOSX) 572 #if defined(OS_MACOSX)
573 // Allow this to be set when invoking the browser and relayed along. 573 // Allow this to be set when invoking the browser and relayed along.
574 switches::kEnableSandboxLogging, 574 switches::kEnableSandboxLogging,
575 switches::kDisableFlashCoreAnimation, 575 switches::kDisableFlashCoreAnimation,
576 #endif 576 #endif
577 switches::kRemoteShellPort, 577 switches::kRemoteShellPort,
578 switches::kEnablePepperTesting, 578 switches::kEnablePepperTesting,
579 switches::kEnableChromoting, 579 switches::kEnableChromoting,
580 switches::kEnableClickToPlay,
580 switches::kPrelaunchGpuProcess, 581 switches::kPrelaunchGpuProcess,
581 }; 582 };
582 583
583 for (size_t i = 0; i < arraysize(switch_names); ++i) { 584 for (size_t i = 0; i < arraysize(switch_names); ++i) {
584 if (browser_cmd.HasSwitch(switch_names[i])) { 585 if (browser_cmd.HasSwitch(switch_names[i])) {
585 renderer_cmd->AppendSwitchWithValue(switch_names[i], 586 renderer_cmd->AppendSwitchWithValue(switch_names[i],
586 browser_cmd.GetSwitchValueASCII(switch_names[i])); 587 browser_cmd.GetSwitchValueASCII(switch_names[i]));
587 } 588 }
588 } 589 }
589 590
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 IPC::InvalidPlatformFileForTransit(), 1072 IPC::InvalidPlatformFileForTransit(),
1072 std::vector<std::string>(), 1073 std::vector<std::string>(),
1073 std::string(), 1074 std::string(),
1074 false)); 1075 false));
1075 } 1076 }
1076 } 1077 }
1077 1078
1078 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { 1079 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) {
1079 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); 1080 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable));
1080 } 1081 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698