| Index: content/browser/net_info_browsertest.cc
|
| diff --git a/content/browser/net_info_browsertest.cc b/content/browser/net_info_browsertest.cc
|
| index fb805f3ec40b623f7e65bf3ccab0f2e53ded25e4..67d939176a2c0e29520bf9a4af4ff83e5a0c1211 100644
|
| --- a/content/browser/net_info_browsertest.cc
|
| +++ b/content/browser/net_info_browsertest.cc
|
| @@ -20,18 +20,20 @@ class NetInfoBrowserTest : public content::ContentBrowserTest {
|
| command_line->AppendSwitch(switches::kEnableNetworkInformation);
|
| }
|
|
|
| -#if defined(OS_CHROMEOS)
|
| void SetUp() override {
|
| + net::NetworkChangeNotifier::SetTestNotificationsOnly(true);
|
| +
|
| +#if defined(OS_CHROMEOS)
|
| // ChromeOS's NetworkChangeNotifier isn't known to content and therefore
|
| // doesn't get created in content_browsertests. Insert a mock
|
| // NetworkChangeNotifier.
|
| net::NetworkChangeNotifier::CreateMock();
|
| +#endif
|
| +
|
| content::ContentBrowserTest::SetUp();
|
| }
|
| -#endif
|
|
|
| void SetUpOnMainThread() override {
|
| - net::NetworkChangeNotifier::SetTestNotificationsOnly(true);
|
| base::RunLoop().RunUntilIdle();
|
| }
|
|
|
|
|