From bb87492897a0ac9ebece62bd5ec799f4c9a7fb41 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 27 Jul 2014 10:32:09 +0000 Subject: [PATCH] No more need to init aura::Env. --- brightray/browser/browser_main_parts.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/brightray/browser/browser_main_parts.cc b/brightray/browser/browser_main_parts.cc index 0dd21b4f66..4a461acc65 100644 --- a/brightray/browser/browser_main_parts.cc +++ b/brightray/browser/browser_main_parts.cc @@ -9,7 +9,6 @@ #include "net/proxy/proxy_resolver_v8.h" #if defined(USE_AURA) -#include "ui/aura/env.h" #include "ui/gfx/screen.h" #include "ui/views/widget/desktop_aura/desktop_screen.h" #endif @@ -97,14 +96,10 @@ void BrowserMainParts::PreMainMessageLoopRun() { void BrowserMainParts::PostMainMessageLoopRun() { browser_context_.reset(); -#if defined(USE_AURA) - aura::Env::DeleteInstance(); -#endif } int BrowserMainParts::PreCreateThreads() { #if defined(USE_AURA) - aura::Env::CreateInstance(); gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, views::CreateDesktopScreen()); #endif