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

Unified Diff: ash/test/ash_interactive_ui_test_base.cc

Issue 1871253002: aura: Require explicit ownership of the Env instance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot.merge Created 4 years, 8 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 | « ash/test/ash_interactive_ui_test_base.h ('k') | ash/test/test_suite.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_interactive_ui_test_base.cc
diff --git a/ash/test/ash_interactive_ui_test_base.cc b/ash/test/ash_interactive_ui_test_base.cc
index b274c17c3bb2ee0245721a1f9079f988abe14150..ece27499d407581ceb3b881f89e171e608a0c0a2 100644
--- a/ash/test/ash_interactive_ui_test_base.cc
+++ b/ash/test/ash_interactive_ui_test_base.cc
@@ -29,14 +29,14 @@ void AshInteractiveUITestBase::SetUp() {
resources_pack_path.Append(FILE_PATH_LITERAL("resources.pak"));
ResourceBundle::GetSharedInstance().AddDataPackFromPath(
resources_pack_path, ui::SCALE_FACTOR_NONE);
- aura::Env::CreateInstance(true);
+ env_ = aura::Env::CreateInstance();
test::AshTestBase::SetUp();
}
void AshInteractiveUITestBase::TearDown() {
test::AshTestBase::TearDown();
- aura::Env::DeleteInstance();
+ env_.reset();
}
} // namespace test
« no previous file with comments | « ash/test/ash_interactive_ui_test_base.h ('k') | ash/test/test_suite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698