File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -33,24 +33,20 @@ var _currentCompleter = Completer<Chrome>();
3333class Chrome {
3434 final int debugPort;
3535 final Process _process;
36- final Directory _dataDir;
3736
3837 final ChromeConnection chromeConnection;
3938
4039 Chrome ._(
4140 this .debugPort,
4241 this .chromeConnection, {
4342 Process process,
44- Directory dataDir,
45- }) : _process = process,
46- _dataDir = dataDir;
43+ }) : _process = process;
4744
4845 Future <void > close () async {
4946 if (_currentCompleter.isCompleted) _currentCompleter = Completer <Chrome >();
5047 chromeConnection.close ();
5148 _process? .kill ();
5249 await _process? .exitCode;
53- await _dataDir? .delete (recursive: true );
5450 }
5551
5652 /// Connects to an instance of Chrome with an open debug port.
@@ -97,7 +93,6 @@ class Chrome {
9793 port,
9894 ChromeConnection ('localhost' , port),
9995 process: process,
100- dataDir: dataDir,
10196 ));
10297 }
10398
You can’t perform that action at this time.
0 commit comments