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

Unified Diff: content/renderer/pepper/pepper_broker.cc

Issue 316373003: Remove base::kInvalidPlatformFileValue from Content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « content/child/blink_platform_impl.cc ('k') | content/renderer/pepper/ppb_broker_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_broker.cc
diff --git a/content/renderer/pepper/pepper_broker.cc b/content/renderer/pepper/pepper_broker.cc
index 0d23de13b8663772eb4a5230afdac8fc5d13a8b9..851408f0b272719c576ffe688fc82bebe3083168 100644
--- a/content/renderer/pepper/pepper_broker.cc
+++ b/content/renderer/pepper/pepper_broker.cc
@@ -23,7 +23,7 @@ namespace content {
namespace {
base::SyncSocket::Handle DuplicateHandle(base::SyncSocket::Handle handle) {
- base::SyncSocket::Handle out_handle = base::kInvalidPlatformFileValue;
+ base::SyncSocket::Handle out_handle = base::SyncSocket::kInvalidHandle;
#if defined(OS_WIN)
DWORD options = DUPLICATE_SAME_ACCESS;
if (!::DuplicateHandle(::GetCurrentProcess(),
@@ -33,7 +33,7 @@ base::SyncSocket::Handle DuplicateHandle(base::SyncSocket::Handle handle) {
0,
FALSE,
options)) {
- out_handle = base::kInvalidPlatformFileValue;
+ out_handle = base::SyncSocket::kInvalidHandle;
}
#elif defined(OS_POSIX)
// If asked to close the source, we can simply re-use the source fd instead of
@@ -188,7 +188,7 @@ void PepperBroker::OnBrokerPermissionResult(PPB_Broker_Impl* client,
if (!result) {
// Report failure.
client->BrokerConnected(
- ppapi::PlatformFileToInt(base::kInvalidPlatformFileValue),
+ ppapi::PlatformFileToInt(base::SyncSocket::kInvalidHandle),
PP_ERROR_NOACCESS);
pending_connects_.erase(entry);
return;
@@ -218,7 +218,7 @@ void PepperBroker::ReportFailureToClients(int error_code) {
base::WeakPtr<PPB_Broker_Impl>& weak_ptr = i->second.client;
if (weak_ptr.get()) {
weak_ptr->BrokerConnected(
- ppapi::PlatformFileToInt(base::kInvalidPlatformFileValue),
+ ppapi::PlatformFileToInt(base::SyncSocket::kInvalidHandle),
error_code);
}
}
@@ -226,7 +226,7 @@ void PepperBroker::ReportFailureToClients(int error_code) {
}
void PepperBroker::ConnectPluginToBroker(PPB_Broker_Impl* client) {
- base::SyncSocket::Handle plugin_handle = base::kInvalidPlatformFileValue;
+ base::SyncSocket::Handle plugin_handle = base::SyncSocket::kInvalidHandle;
int32_t result = PP_OK;
// The socket objects will be deleted when this function exits, closing the
« no previous file with comments | « content/child/blink_platform_impl.cc ('k') | content/renderer/pepper/ppb_broker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698