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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 2071613002: Revert of GPU Watchdog to check I/O before terminating GPU process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/gpu_watchdog_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 62e1780eea7d04e9ad9c2b526beb05eb82437b8d..161855ad20dbac03efa8f68b20d6d49c177d5d5b 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -15,7 +15,6 @@
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/command_line.h"
-#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
@@ -36,7 +35,6 @@
#include "content/common/child_process_host_impl.h"
#include "content/common/establish_channel_params.h"
#include "content/common/gpu_host_messages.h"
-#include "content/common/gpu_watchdog_utils.h"
#include "content/common/in_process_child_thread_params.h"
#include "content/common/view_messages.h"
#include "content/public/browser/browser_thread.h"
@@ -266,17 +264,6 @@
}
}
- // Enable GPU watchdog to write to a temp file to delay crashing when
- // there is a high I/O activitiy.
- base::FilePath temp_file_path;
- if (content::GetGpuWatchdogTempFile(&temp_file_path)) {
- result = policy->AddRule(sandbox::TargetPolicy::SUBSYS_FILES,
- sandbox::TargetPolicy::FILES_ALLOW_ANY,
- temp_file_path.value().c_str());
- if (result != sandbox::SBOX_ALL_OK)
- return false;
- }
-
return true;
}
#elif defined(OS_POSIX)
« no previous file with comments | « no previous file | content/common/gpu_watchdog_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698