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

Unified Diff: remoting/host/it2me/it2me_native_messaging_host_main.cc

Issue 1458323002: Simplify It2Me host shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: remoting/host/it2me/it2me_native_messaging_host_main.cc
diff --git a/remoting/host/it2me/it2me_native_messaging_host_main.cc b/remoting/host/it2me/it2me_native_messaging_host_main.cc
index bc892118588678532c4b77740250237535545b93..e0f93490d9cc945e91d60e99124fa8df8c94b680 100644
--- a/remoting/host/it2me/it2me_native_messaging_host_main.cc
+++ b/remoting/host/it2me/it2me_native_messaging_host_main.cc
@@ -23,6 +23,8 @@
#if defined(OS_LINUX)
#include <gtk/gtk.h>
#include <X11/Xlib.h>
+
+#include "base/linux_util.h"
#endif // defined(OS_LINUX)
#if defined(OS_MACOSX)
@@ -73,6 +75,10 @@ int StartIt2MeNativeMessagingHost() {
// Continue windows. Calling with nullptr arguments because we don't have
// any command line arguments for gtk to consume.
gtk_init(nullptr, nullptr);
+
+ // Need to prime the host OS version value for linux to prevent IO on the
+ // network thread. base::GetLinuxDistro() caches the result.
+ base::GetLinuxDistro();
#endif // OS_LINUX
// Enable support for SSL server sockets, which must be done while still
« no previous file with comments | « remoting/host/it2me/it2me_native_messaging_host.cc ('k') | remoting/host/it2me/it2me_native_messaging_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698