Chromium Code Reviews| Index: chrome/browser/browser_about_handler.cc |
| =================================================================== |
| --- chrome/browser/browser_about_handler.cc (revision 110530) |
| +++ chrome/browser/browser_about_handler.cc (working copy) |
| @@ -45,12 +45,11 @@ |
| #include "chrome/common/net/gaia/google_service_auth_error.h" |
| #include "chrome/common/render_messages.h" |
| #include "chrome/common/url_constants.h" |
| -#include "content/browser/gpu/gpu_process_host.h" |
| +#include "content/browser/gpu/gpu_process_host_ui_shim.h" |
| #include "content/browser/plugin_service.h" |
| #include "content/browser/renderer_host/render_process_host.h" |
| #include "content/browser/renderer_host/render_view_host.h" |
| #include "content/browser/sensors/sensors_provider.h" |
| -#include "content/common/gpu/gpu_messages.h" |
| #include "content/public/browser/browser_thread.h" |
| #include "content/public/common/content_client.h" |
| #include "crypto/nss_util.h" |
| @@ -1560,14 +1559,17 @@ |
| // Induce an intentional crash in the browser process. |
| CHECK(false); |
| } else if (host == chrome::kChromeUIGpuCleanHost) { |
| - GpuProcessHost::SendOnIO( |
| - 0, content::CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH, new GpuMsg_Clean()); |
| + GpuProcessHostUIShim* shim = GpuProcessHostUIShim::FromId(0); |
| + if (shim) |
| + shim->SimulateClean(); |
|
apatrick_chromium
2011/11/18 17:53:30
I think you called this SimulateRemoveAllContext.
jam
2011/11/18 17:57:26
ah yep, I renamed it but I hadn't saved the local
|
| } else if (host == chrome::kChromeUIGpuCrashHost) { |
| - GpuProcessHost::SendOnIO( |
| - 0, content::CAUSE_FOR_GPU_LAUNCH_ABOUT_GPUCRASH, new GpuMsg_Crash()); |
| + GpuProcessHostUIShim* shim = GpuProcessHostUIShim::FromId(0); |
| + if (shim) |
| + shim->SimulateCrash(); |
| } else if (host == chrome::kChromeUIGpuHangHost) { |
| - GpuProcessHost::SendOnIO( |
| - 0, content::CAUSE_FOR_GPU_LAUNCH_ABOUT_GPUHANG, new GpuMsg_Hang()); |
| + GpuProcessHostUIShim* shim = GpuProcessHostUIShim::FromId(0); |
| + if (shim) |
| + shim->SimulateHang(); |
| #if defined(OS_CHROMEOS) |
| } else if (host == chrome::kChromeUIRotateHost) { |
| sensors::ScreenOrientation change; |