diff options
author | jorgelo@chromium.org <jorgelo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-18 04:20:41 +0000 |
---|---|---|
committer | jorgelo@chromium.org <jorgelo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-18 04:20:41 +0000 |
commit | 1e6ef6c000c406a2c7980bd527068a18327a808e (patch) | |
tree | a69df9f7db448e212c745d09b68927dc3558b939 | |
parent | 4f92bd1b131a43aac7a57ce684722557ab47c275 (diff) | |
download | chromium_src-1e6ef6c000c406a2c7980bd527068a18327a808e.zip chromium_src-1e6ef6c000c406a2c7980bd527068a18327a808e.tar.gz chromium_src-1e6ef6c000c406a2c7980bd527068a18327a808e.tar.bz2 |
Add a flag to make GPU sandbox failures nonfatal.
BUG=327824
TEST=chromeos=1 compiles, loads.
Review URL: https://codereview.chromium.org/117463002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241480 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/chromeos/login/chrome_restart_request.cc | 1 | ||||
-rw-r--r-- | chromeos/chromeos_switches.cc | 3 | ||||
-rw-r--r-- | chromeos/chromeos_switches.h | 1 | ||||
-rw-r--r-- | content/browser/gpu/gpu_process_host.cc | 7 |
4 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/login/chrome_restart_request.cc b/chrome/browser/chromeos/login/chrome_restart_request.cc index 1f54955..abc37ee 100644 --- a/chrome/browser/chromeos/login/chrome_restart_request.cc +++ b/chrome/browser/chromeos/login/chrome_restart_request.cc @@ -196,6 +196,7 @@ std::string DeriveCommandLine(const GURL& start_url, chromeos::switches::kDbusStub, chromeos::switches::kDisableLoginAnimations, chromeos::switches::kDisableOobeAnimation, + chromeos::switches::kGpuSandboxFailuresNonfatal, chromeos::switches::kHasChromeOSDiamondKey, chromeos::switches::kHasChromeOSKeyboard, chromeos::switches::kLoginProfile, diff --git a/chromeos/chromeos_switches.cc b/chromeos/chromeos_switches.cc index f5eb505..4da5167 100644 --- a/chromeos/chromeos_switches.cc +++ b/chromeos/chromeos_switches.cc @@ -136,6 +136,9 @@ const char kFirstExecAfterBoot[] = "first-exec-after-boot"; // tests can change how it's brought up. This flag disables that. const char kForceLoginManagerInTests[] = "force-login-manager-in-tests"; +// Makes GPU sandbox failures nonfatal. +const char kGpuSandboxFailuresNonfatal[] = "gpu-sandbox-failures-nonfatal"; + // Indicates that the browser is in "browse without sign-in" (Guest session) // mode. Should completely disable extensions, sync and bookmarks. const char kGuestSession[] = "bwsi"; diff --git a/chromeos/chromeos_switches.h b/chromeos/chromeos_switches.h index 85c1e67..142f22a 100644 --- a/chromeos/chromeos_switches.h +++ b/chromeos/chromeos_switches.h @@ -54,6 +54,7 @@ CHROMEOS_EXPORT extern const char kFileManagerShowCheckboxes[]; CHROMEOS_EXPORT extern const char kFileManagerEnableWebstoreIntegration[]; CHROMEOS_EXPORT extern const char kFirstExecAfterBoot[]; CHROMEOS_EXPORT extern const char kForceLoginManagerInTests[]; +CHROMEOS_EXPORT extern const char kGpuSandboxFailuresNonfatal[]; CHROMEOS_EXPORT extern const char kGuestSession[]; CHROMEOS_EXPORT extern const char kHasChromeOSDiamondKey[]; CHROMEOS_EXPORT extern const char kHasChromeOSKeyboard[]; diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc index 1b7da1c..3d0544d 100644 --- a/content/browser/gpu/gpu_process_host.cc +++ b/content/browser/gpu/gpu_process_host.cc @@ -48,6 +48,10 @@ #include "ui/surface/accelerated_surface_win.h" #endif +#if defined(OS_CHROMEOS) +#include "chromeos/chromeos_switches.h" +#endif + #if defined(USE_OZONE) #include "ui/ozone/ozone_switches.h" #endif @@ -1133,6 +1137,9 @@ bool GpuProcessHost::LaunchGpuProcess(const std::string& channel_id) { #if defined(OS_MACOSX) switches::kEnableSandboxLogging, #endif +#if defined(OS_CHROMEOS) + chromeos::switches::kGpuSandboxFailuresNonfatal, +#endif #if defined(USE_AURA) switches::kUIPrioritizeInGpuProcess, #endif |