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

Unified Diff: components/native_viewport/native_viewport_application_delegate.cc

Issue 1130353008: Ensure that NativeViewport destructs correctly on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: components/native_viewport/native_viewport_application_delegate.cc
diff --git a/components/native_viewport/native_viewport_application_delegate.cc b/components/native_viewport/native_viewport_application_delegate.cc
index 4f247c7a5c55a20feedee52352257dc7d6b7d56a..63eff6bd5c512df3bb8563f4997f37c3fa737c45 100644
--- a/components/native_viewport/native_viewport_application_delegate.cc
+++ b/components/native_viewport/native_viewport_application_delegate.cc
@@ -10,6 +10,7 @@
#include "mojo/application/public/cpp/application_connection.h"
#include "mojo/application/public/cpp/application_impl.h"
#include "ui/events/event_switches.h"
+#include "ui/events/platform/platform_event_source.h"
#include "ui/gl/gl_surface.h"
namespace native_viewport {
@@ -23,6 +24,7 @@ NativeViewportApplicationDelegate::~NativeViewportApplicationDelegate() {
void NativeViewportApplicationDelegate::Initialize(
mojo::ApplicationImpl* application) {
+ event_source_ = ui::PlatformEventSource::CreateDefault();
tracing_.Initialize(application);
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
« no previous file with comments | « components/native_viewport/native_viewport_application_delegate.h ('k') | components/native_viewport/native_viewport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698