Skip to content

Commit

Permalink
Fix Crostini browser test failures with network service.
Browse files Browse the repository at this point in the history
Change-Id: I7b39e8d244b150ab4093c2dcee21ca9873934661
Reviewed-on: https://chromium-review.googlesource.com/c/1478471
Reviewed-by: Scott Violet <[email protected]>
Commit-Queue: Robbie McElrath <[email protected]>
Cr-Commit-Position: refs/heads/master@{#633865}
  • Loading branch information
robbiemc authored and Commit Bot committed Feb 20, 2019
1 parent dca111a commit baa6303
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ class CrostiniBrowserTestChromeBrowserMainExtraParts
browser_process_platform_part_test_api_->InitializeCrosComponentManager(
std::move(cros_component_manager));
}
void ServiceManagerConnectionStarted(
content::ServiceManagerConnection* connection) override {
// Ideally we'd call SetConnectionType in ServiceManagerConnectionStarted,
// but currently we have to wait for PreProfileInit to complete, since that
// creates the ash::Shell that AshService needs in order to start.
void PostProfileInit() override {
connection_change_simulator_.SetConnectionType(
network::mojom::ConnectionType::CONNECTION_WIFI);
}
Expand Down

0 comments on commit baa6303

Please sign in to comment.