Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 9675423

Browse files
committed
Impl
1 parent df619c6 commit 9675423

File tree

11 files changed

+0
-46
lines changed

11 files changed

+0
-46
lines changed

common/settings.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,6 @@ struct Settings {
189189
// target indicating the URL at which the VM service can be accessed.
190190
uint32_t vm_service_port = 0;
191191

192-
// Determines whether an authentication code is required to communicate with
193-
// the VM service.
194-
bool disable_service_auth_codes = true;
195-
196192
// Determine whether the vmservice should fallback to automatic port selection
197193
// after failing to bind to a specified port.
198194
bool enable_service_port_fallback = false;

runtime/dart_isolate.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,6 @@ Dart_Isolate DartIsolate::DartCreateAndStartServiceIsolate(
805805
settings.vm_service_port, // server VM service port
806806
tonic::DartState::HandleLibraryTag, // embedder library tag handler
807807
false, // disable websocket origin check
808-
settings.disable_service_auth_codes, // disable VM service auth codes
809808
settings.enable_service_port_fallback, // enable fallback to port 0
810809
// when bind fails.
811810
error // error (out)

runtime/dart_service_isolate.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ bool DartServiceIsolate::Startup(const std::string& server_ip,
130130
intptr_t server_port,
131131
Dart_LibraryTagHandler embedder_tag_handler,
132132
bool disable_origin_check,
133-
bool disable_service_auth_codes,
134133
bool enable_service_port_fallback,
135134
char** error) {
136135
Dart_Isolate isolate = Dart_CurrentIsolate();
@@ -182,10 +181,6 @@ bool DartServiceIsolate::Startup(const std::string& server_ip,
182181
Dart_SetField(library, Dart_NewStringFromCString("_originCheckDisabled"),
183182
Dart_NewBoolean(disable_origin_check));
184183
SHUTDOWN_ON_ERROR(result);
185-
result =
186-
Dart_SetField(library, Dart_NewStringFromCString("_authCodesDisabled"),
187-
Dart_NewBoolean(disable_service_auth_codes));
188-
SHUTDOWN_ON_ERROR(result);
189184
result = Dart_SetField(
190185
library, Dart_NewStringFromCString("_enableServicePortFallback"),
191186
Dart_NewBoolean(enable_service_port_fallback));

runtime/dart_service_isolate.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ class DartServiceIsolate {
4747
/// @param[in] embedder_tag_handler The library tag handler.
4848
/// @param[in] disable_origin_check If websocket origin checks must
4949
/// be enabled.
50-
/// @param[in] disable_service_auth_codes If service auth codes must be
51-
/// enabled.
5250
/// @param[in] enable_service_port_fallback If fallback to port 0 must be
5351
/// enabled when the bind fails.
5452
/// @param error The error when this method
@@ -63,7 +61,6 @@ class DartServiceIsolate {
6361
intptr_t server_port,
6462
Dart_LibraryTagHandler embedder_tag_handler,
6563
bool disable_origin_check,
66-
bool disable_service_auth_codes,
6764
bool enable_service_port_fallback,
6865
char** error);
6966

runtime/dart_vm.cc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ static const char* kDartStartPausedArgs[]{
9090
"--pause_isolates_on_start",
9191
};
9292

93-
static const char* kDartDisableServiceAuthCodesArgs[]{
94-
"--disable-service-auth-codes",
95-
};
96-
9793
static const char* kDartEndlessTraceBufferArgs[]{
9894
"--timeline_recorder=endless",
9995
};
@@ -380,11 +376,6 @@ DartVM::DartVM(const std::shared_ptr<const DartVMData>& vm_data,
380376
PushBackAll(&args, kDartStartPausedArgs, fml::size(kDartStartPausedArgs));
381377
}
382378

383-
if (settings_.disable_service_auth_codes) {
384-
PushBackAll(&args, kDartDisableServiceAuthCodesArgs,
385-
fml::size(kDartDisableServiceAuthCodesArgs));
386-
}
387-
388379
if (settings_.endless_trace_buffer || settings_.trace_startup) {
389380
// If we are tracing startup, make sure the trace buffer is endless so we
390381
// don't lose early traces.

shell/common/switches.cc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,6 @@ Settings SettingsFromCommandLine(const fml::CommandLine& command_line) {
293293
command_line.GetOptionValue(FlagForSwitch(Switch::DomainNetworkPolicy),
294294
&settings.domain_network_policy);
295295

296-
// Disable need for authentication codes for VM service communication, if
297-
// specified.
298-
settings.disable_service_auth_codes =
299-
command_line.HasOption(FlagForSwitch(Switch::DisableServiceAuthCodes));
300-
301296
// Allow fallback to automatic port selection if binding to a specified port
302297
// fails.
303298
settings.enable_service_port_fallback =

shell/common/switches.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,6 @@ DEF_SWITCH(FlutterAssetsDir,
146146
"Path to the Flutter assets directory.")
147147
DEF_SWITCH(Help, "help", "Display this help text.")
148148
DEF_SWITCH(LogTag, "log-tag", "Tag associated with log messages.")
149-
DEF_SWITCH(DisableServiceAuthCodes,
150-
"disable-service-auth-codes",
151-
"Disable the requirement for authentication codes for communicating"
152-
" with the VM service.")
153149
DEF_SWITCH(EnableServicePortFallback,
154150
"enable-service-port-fallback",
155151
"Allow the VM service to fallback to automatic port selection if"

shell/platform/android/io/flutter/app/FlutterActivityDelegate.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,6 @@ private static String[] getArgsFromIntent(Intent intent) {
293293
if (intent.getBooleanExtra("start-paused", false)) {
294294
args.add("--start-paused");
295295
}
296-
if (intent.getBooleanExtra("disable-service-auth-codes", false)) {
297-
args.add("--disable-service-auth-codes");
298-
}
299296
if (intent.getBooleanExtra("use-test-fonts", false)) {
300297
args.add("--use-test-fonts");
301298
}

shell/platform/android/io/flutter/embedding/engine/FlutterShellArgs.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ public class FlutterShellArgs {
2424
public static final String ARG_TRACE_STARTUP = "--trace-startup";
2525
public static final String ARG_KEY_START_PAUSED = "start-paused";
2626
public static final String ARG_START_PAUSED = "--start-paused";
27-
public static final String ARG_KEY_DISABLE_SERVICE_AUTH_CODES = "disable-service-auth-codes";
28-
public static final String ARG_DISABLE_SERVICE_AUTH_CODES = "--disable-service-auth-codes";
2927
public static final String ARG_KEY_ENDLESS_TRACE_BUFFER = "endless-trace-buffer";
3028
public static final String ARG_ENDLESS_TRACE_BUFFER = "--endless-trace-buffer";
3129
public static final String ARG_KEY_USE_TEST_FONTS = "use-test-fonts";
@@ -92,9 +90,6 @@ public static FlutterShellArgs fromIntent(@NonNull Intent intent) {
9290
args.add(ARG_VM_SERVICE_PORT + Integer.toString(vmServicePort));
9391
}
9492
}
95-
if (intent.getBooleanExtra(ARG_KEY_DISABLE_SERVICE_AUTH_CODES, false)) {
96-
args.add(ARG_DISABLE_SERVICE_AUTH_CODES);
97-
}
9893
if (intent.getBooleanExtra(ARG_KEY_ENDLESS_TRACE_BUFFER, false)) {
9994
args.add(ARG_ENDLESS_TRACE_BUFFER);
10095
}

shell/platform/fuchsia/dart_runner/service_isolate.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,6 @@ Dart_Isolate CreateServiceIsolate(
186186
Dart_NewBoolean(false));
187187
SHUTDOWN_ON_ERROR(result);
188188

189-
// _authCodesDisabled = false
190-
result =
191-
Dart_SetField(library, Dart_NewStringFromCString("_authCodesDisabled"),
192-
Dart_NewBoolean(false));
193-
SHUTDOWN_ON_ERROR(result);
194-
195189
InitBuiltinLibrariesForIsolate(std::string(uri), nullptr, fileno(stdout),
196190
fileno(stderr), zx::channel(), true);
197191

0 commit comments

Comments
 (0)