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

Unified Diff: components/nacl/browser/nacl_process_host.cc

Issue 2762513002: Remove keep-alive impulse IPCs from NaCl modules. (Closed)
Patch Set: Created 3 years, 9 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
Index: components/nacl/browser/nacl_process_host.cc
diff --git a/components/nacl/browser/nacl_process_host.cc b/components/nacl/browser/nacl_process_host.cc
index 989de24b838bc903583c3c09e3ceacae8309c453..ab519485307f94458de11a92be2bb6b5d349a425 100644
--- a/components/nacl/browser/nacl_process_host.cc
+++ b/components/nacl/browser/nacl_process_host.cc
@@ -196,9 +196,6 @@ void CloseFile(base::File file) {
} // namespace
-unsigned NaClProcessHost::keepalive_throttle_interval_milliseconds_ =
- ppapi::kKeepaliveThrottleIntervalDefaultMilliseconds;
-
NaClProcessHost::NaClProcessHost(
const GURL& manifest_url,
base::File nexe_file,
@@ -343,12 +340,6 @@ void NaClProcessHost::EarlyZygoteLaunch() {
}
#endif // defined(OS_POSIX) && !defined(OS_MACOSX)
-// static
-void NaClProcessHost::SetPpapiKeepAliveThrottleForTesting(
- unsigned milliseconds) {
- keepalive_throttle_interval_milliseconds_ = milliseconds;
-}
-
void NaClProcessHost::Launch(
NaClHostMessageFilter* nacl_host_message_filter,
IPC::Message* reply_msg,
@@ -933,14 +924,10 @@ bool NaClProcessHost::StartPPAPIProxy(
nacl_host_message_filter_->render_process_id(),
render_view_id_,
profile_directory_));
- ppapi_host_->SetOnKeepaliveCallback(
- NaClBrowser::GetDelegate()->GetOnKeepaliveCallback());
ppapi::PpapiNaClPluginArgs args;
args.off_the_record = nacl_host_message_filter_->off_the_record();
args.permissions = permissions_;
- args.keepalive_throttle_interval_milliseconds =
- keepalive_throttle_interval_milliseconds_;
base::CommandLine* cmdline = base::CommandLine::ForCurrentProcess();
DCHECK(cmdline);
std::string flag_whitelist[] = {

Powered by Google App Engine
This is Rietveld 408576698