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

Unified Diff: chromecast/browser/cast_browser_process.cc

Issue 659563004: Chromecast: extracts Linux window creation code to a common place. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, delete aura instance in ~CastBrowserProcess Created 6 years, 2 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_content_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_browser_process.cc
diff --git a/chromecast/browser/cast_browser_process.cc b/chromecast/browser/cast_browser_process.cc
index 03377d46a479ab02feef13140d9ef7446286c7ef..8a3057c4a28791f58420683c84e86a0dfc115b04 100644
--- a/chromecast/browser/cast_browser_process.cc
+++ b/chromecast/browser/cast_browser_process.cc
@@ -14,6 +14,10 @@
#include "components/crash/browser/crash_dump_manager_android.h"
#endif // defined(OS_ANDROID)
+#if defined(USE_AURA)
+#include "ui/aura/env.h"
+#endif
+
namespace chromecast {
namespace shell {
@@ -34,6 +38,9 @@ CastBrowserProcess::CastBrowserProcess() {
CastBrowserProcess::~CastBrowserProcess() {
DCHECK_EQ(g_instance, this);
+#if defined(USE_AURA)
+ aura::Env::DeleteInstance();
+#endif
g_instance = NULL;
}
« no previous file with comments | « no previous file | chromecast/browser/cast_content_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698