Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85029a4e authored by Chiachang Wang's avatar Chiachang Wang Committed by Gerrit Code Review
Browse files

Revert "Add attribution tags for VCN and VPN"

This reverts commit 694b1875.

Reason for revert: <Break VpnManagerServiceTest. See b/286161960>

Change-Id: I4665c257c3cca28f0f657ba0f653ba2068f0d5e2
parent 694b1875
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -162,8 +162,6 @@ import java.util.concurrent.TimeUnit;
// TODO(b/180451994): ensure all incoming + outgoing calls have a cleared calling identity
public class VcnManagementService extends IVcnManagementService.Stub {
    @NonNull private static final String TAG = VcnManagementService.class.getSimpleName();
    @NonNull private static final String CONTEXT_ATTRIBUTION_TAG = "VCN";

    private static final long DUMP_TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(5);
    private static final int LOCAL_LOG_LINE_COUNT = 512;

@@ -225,9 +223,7 @@ public class VcnManagementService extends IVcnManagementService.Stub {

    @VisibleForTesting(visibility = Visibility.PRIVATE)
    VcnManagementService(@NonNull Context context, @NonNull Dependencies deps) {
        mContext =
                requireNonNull(context, "Missing context")
                        .createAttributionContext(CONTEXT_ATTRIBUTION_TAG);
        mContext = requireNonNull(context, "Missing context");
        mDeps = requireNonNull(deps, "Missing dependencies");

        mLooper = mDeps.getLooper();
+1 −2
Original line number Diff line number Diff line
@@ -80,7 +80,6 @@ import java.util.List;
 */
public class VpnManagerService extends IVpnManager.Stub {
    private static final String TAG = VpnManagerService.class.getSimpleName();
    private static final String CONTEXT_ATTRIBUTION_TAG = "VPN_MANAGER";

    @VisibleForTesting
    protected final HandlerThread mHandlerThread;
@@ -158,7 +157,7 @@ public class VpnManagerService extends IVpnManager.Stub {
    }

    public VpnManagerService(Context context, Dependencies deps) {
        mContext = context.createAttributionContext(CONTEXT_ATTRIBUTION_TAG);
        mContext = context;
        mDeps = deps;
        mHandlerThread = mDeps.makeHandlerThread();
        mHandlerThread.start();