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

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 8548014: Get rid of last gpu_messages.h dependency in chrome by having chrome ask the GPUProcessHostUIShim... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix shared Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host_ui_shim.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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->SimulateRemoveAllContext();
} 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;
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host_ui_shim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698