summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/HTTPBase.cpp
diff options
context:
space:
mode:
authorSreeram Ramachandran <sreeram@google.com>2014-07-11 17:37:32 -0700
committerSreeram Ramachandran <sreeram@google.com>2014-07-11 17:45:53 -0700
commit8e6912423c3be3fc2f4bab8ac815f0dce075ded8 (patch)
tree663cec66b2cead18e0683ab749062d94a51188b8 /media/libstagefright/HTTPBase.cpp
parentbb37e1ce90fe46963512a8dfa5f2f9a974a2424f (diff)
downloadframeworks_av-8e6912423c3be3fc2f4bab8ac815f0dce075ded8.zip
frameworks_av-8e6912423c3be3fc2f4bab8ac815f0dce075ded8.tar.gz
frameworks_av-8e6912423c3be3fc2f4bab8ac815f0dce075ded8.tar.bz2
Use a better and more direct API to mark a socket as if it were a user's.
Change-Id: If525ee259b74314191d1913f7c2a3e828e05c38f
Diffstat (limited to 'media/libstagefright/HTTPBase.cpp')
-rw-r--r--media/libstagefright/HTTPBase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/HTTPBase.cpp b/media/libstagefright/HTTPBase.cpp
index ca68c3d..32291c8 100644
--- a/media/libstagefright/HTTPBase.cpp
+++ b/media/libstagefright/HTTPBase.cpp
@@ -26,7 +26,7 @@
#include <cutils/properties.h>
#include <cutils/qtaguid.h>
-#include <ConnectivityManager.h>
+#include <NetdClient.h>
namespace android {
@@ -122,7 +122,7 @@ void HTTPBase::UnRegisterSocketUserTag(int sockfd) {
// static
void HTTPBase::RegisterSocketUserMark(int sockfd, uid_t uid) {
- ConnectivityManager::markSocketAsUser(sockfd, uid);
+ setNetworkForUser(uid, sockfd);
}
// static