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

Unified Diff: chrome/browser/android/devtools_server.cc

Issue 2784353002: Android: Remove GetApplicationContext part 2 (Closed)
Patch Set: Fix tests Created 3 years, 8 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: chrome/browser/android/devtools_server.cc
diff --git a/chrome/browser/android/devtools_server.cc b/chrome/browser/android/devtools_server.cc
index 56c47367c7cf3280a8f85160a4f9d10ae8996672..4f9502c9159146d73d9e0da7de08a7fc17763516 100644
--- a/chrome/browser/android/devtools_server.cc
+++ b/chrome/browser/android/devtools_server.cc
@@ -8,7 +8,6 @@
#include <cstring>
#include <utility>
-#include "base/android/context_utils.h"
#include "base/android/jni_string.h"
#include "base/bind.h"
#include "base/callback.h"
@@ -72,10 +71,9 @@ const int kBackLog = 10;
bool AuthorizeSocketAccessWithDebugPermission(
const net::UnixDomainServerSocket::Credentials& credentials) {
JNIEnv* env = base::android::AttachCurrentThread();
- return Java_DevToolsServer_checkDebugPermission(
- env, base::android::GetApplicationContext(),
- credentials.process_id, credentials.user_id) ||
- content::CanUserConnectToDevTools(credentials);
+ return Java_DevToolsServer_checkDebugPermission(env, credentials.process_id,
+ credentials.user_id) ||
+ content::CanUserConnectToDevTools(credentials);
}
// Factory for UnixDomainServerSocket. It tries a fallback socket when
« no previous file with comments | « chrome/browser/android/data_usage/external_data_use_observer_bridge.cc ('k') | chrome/browser/android/intent_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698