| Index: chrome/browser/renderer_host/browser_render_process_host.cc
|
| ===================================================================
|
| --- chrome/browser/renderer_host/browser_render_process_host.cc (revision 69586)
|
| +++ chrome/browser/renderer_host/browser_render_process_host.cc (working copy)
|
| @@ -591,6 +591,14 @@
|
| if (!profile.empty())
|
| command_line->AppendSwitchASCII(switches::kLoginProfile, profile);
|
| #endif
|
| +
|
| + PrefService* prefs = profile()->GetPrefs();
|
| + // Currently this pref is only registered if applied via a policy.
|
| + if (prefs->HasPrefPath(prefs::kDisable3DAPIs) &&
|
| + prefs->GetBoolean(prefs::kDisable3DAPIs)) {
|
| + // Turn this policy into a command line switch.
|
| + command_line->AppendSwitch(switches::kDisable3DAPIs);
|
| + }
|
| }
|
|
|
| void BrowserRenderProcessHost::PropagateBrowserCommandLineToRenderer(
|
| @@ -693,7 +701,8 @@
|
| switches::kDisableFileSystem,
|
| switches::kPpapiOutOfProcess,
|
| switches::kEnablePrintPreview,
|
| - switches::kEnableCrxlessWebApps
|
| + switches::kEnableCrxlessWebApps,
|
| + switches::kDisable3DAPIs
|
| };
|
| renderer_cmd->CopySwitchesFrom(browser_cmd, kSwitchNames,
|
| arraysize(kSwitchNames));
|
|
|