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

Unified Diff: ppapi/shared_impl/vpn_provider_util.cc

Issue 2129653002: Revert of ppapi: PPB_VpnProvider: Implement Resource Host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vpn-nacl-sdk
Patch Set: Created 4 years, 5 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 | « ppapi/shared_impl/vpn_provider_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/vpn_provider_util.cc
diff --git a/ppapi/shared_impl/vpn_provider_util.cc b/ppapi/shared_impl/vpn_provider_util.cc
index 8241aa42ed7980289b725d3da9cc110236177078..10da28aac4aca6171adc87f9b64f1ea3ea210db1 100644
--- a/ppapi/shared_impl/vpn_provider_util.cc
+++ b/ppapi/shared_impl/vpn_provider_util.cc
@@ -11,7 +11,7 @@
uint32_t packet_size,
std::unique_ptr<base::SharedMemory> shm)
: capacity_(capacity),
- max_packet_size_(packet_size),
+ packet_size_(packet_size),
shm_(std::move(shm)),
available_(capacity, true) {
DCHECK(this->shm_);
@@ -44,11 +44,11 @@
NOTREACHED();
return nullptr;
}
- return reinterpret_cast<char*>(shm_->memory()) + max_packet_size_ * id;
+ return reinterpret_cast<char*>(shm_->memory()) + packet_size_ * id;
}
base::SharedMemoryHandle VpnProviderSharedBuffer::GetHandle() {
return shm_->handle();
}
-} // namespace ppapi
+} // namespace ppapi
« no previous file with comments | « ppapi/shared_impl/vpn_provider_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698