mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:37:34 +00:00
Ladybird+LibWebView: Move creation of the SQL client to LibWebView
This lets us remove the direct dependency from Ladybird to LibSQL.
This commit is contained in:
parent
5c5a00dd3a
commit
e26ead0995
5 changed files with 18 additions and 8 deletions
|
@ -46,9 +46,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
args_parser.parse(arguments);
|
||||
|
||||
auto sql_server_paths = TRY(get_paths_for_helper_process("SQLServer"sv));
|
||||
auto sql_client = TRY(SQL::SQLClient::launch_server_and_create_client(move(sql_server_paths)));
|
||||
|
||||
auto database = TRY(WebView::Database::create(move(sql_client)));
|
||||
auto database = TRY(WebView::Database::create(move(sql_server_paths)));
|
||||
auto cookie_jar = TRY(WebView::CookieJar::create(*database));
|
||||
|
||||
Optional<URL> initial_url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue