Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1308)

Unified Diff: chromecast/browser/cast_browser_main_parts.cc

Issue 925183003: [Chromecast] Add connectivity checking for Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments in patchset 1 Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromecast/browser/cast_browser_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_browser_main_parts.cc
diff --git a/chromecast/browser/cast_browser_main_parts.cc b/chromecast/browser/cast_browser_main_parts.cc
index 100bea2f63cfe28e60602c8dd40958045d8294b2..87a2dcf7fc459575ae8857426703b9fd68f02861 100644
--- a/chromecast/browser/cast_browser_main_parts.cc
+++ b/chromecast/browser/cast_browser_main_parts.cc
@@ -28,6 +28,7 @@
#include "chromecast/common/cast_paths.h"
#include "chromecast/common/chromecast_switches.h"
#include "chromecast/common/platform_client_auth.h"
+#include "chromecast/net/connectivity_checker.h"
#include "chromecast/net/network_change_notifier_cast.h"
#include "chromecast/net/network_change_notifier_factory_cast.h"
#include "content/public/browser/browser_thread.h"
@@ -208,6 +209,11 @@ void CastBrowserMainParts::PreMainMessageLoopRun() {
::media::SetBrowserCdmFactory(new media::CastBrowserCdmFactory);
#endif // !defined(OS_ANDROID)
+ cast_browser_process_->SetConnectivityChecker(
+ make_scoped_refptr(new ConnectivityChecker(
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::FILE))));
+
url_request_context_factory_->InitializeOnUIThread();
cast_browser_process_->SetBrowserContext(
« no previous file with comments | « no previous file | chromecast/browser/cast_browser_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698