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

Unified Diff: content/gpu/gpu_watchdog_thread.cc

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 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 | « content/gpu/gpu_watchdog_thread.h ('k') | content/public/test/render_view_fake_resources_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_watchdog_thread.cc
===================================================================
--- content/gpu/gpu_watchdog_thread.cc (revision 163290)
+++ content/gpu/gpu_watchdog_thread.cc (working copy)
@@ -18,6 +18,7 @@
#include "content/public/common/content_switches.h"
#include "content/public/common/result_codes.h"
+namespace content {
namespace {
const int64 kCheckPeriodMs = 2000;
} // namespace
@@ -205,7 +206,7 @@
*((volatile int*)0) = 0x1337;
} else {
base::Process current_process(base::GetCurrentProcessHandle());
- current_process.Terminate(content::RESULT_CODE_HUNG);
+ current_process.Terminate(RESULT_CODE_HUNG);
}
terminated = true;
@@ -243,3 +244,5 @@
(user_time64.QuadPart + kernel_time64.QuadPart) / 10000));
}
#endif
+
+} // namespace content
« no previous file with comments | « content/gpu/gpu_watchdog_thread.h ('k') | content/public/test/render_view_fake_resources_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698