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

Unified Diff: ash/test/test_suite.cc

Issue 2325723003: Cleanup Ash Metro mode. (Closed)
Patch Set: review comments Created 4 years, 3 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_test_base.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_suite.cc
diff --git a/ash/test/test_suite.cc b/ash/test/test_suite.cc
index 33dedc1bace134da4757824a4e117b7b5b2bb2be..19d10a8edc05dae827894a200f97e67768f37bc6 100644
--- a/ash/test/test_suite.cc
+++ b/ash/test/test_suite.cc
@@ -19,7 +19,7 @@
#include "ui/gl/test/gl_surface_test_support.h"
#if defined(OS_WIN)
-#include "base/win/windows_version.h"
+#include "base/win/scoped_com_initializer.h"
#include "ui/base/win/atl_module.h"
#endif
@@ -36,15 +36,8 @@ void AuraShellTestSuite::Initialize() {
gl::GLSurfaceTestSupport::InitializeOneOff();
#if defined(OS_WIN)
- base::win::Version version = base::win::GetVersion();
- // Although Ash officially is only supported for users on Win7+, we still run
- // ash_unittests on Vista builders, so we still need to initialize COM.
- if (version >= base::win::VERSION_VISTA &&
- !base::CommandLine::ForCurrentProcess()->HasSwitch(
- ash::switches::kForceAshToDesktop)) {
- com_initializer_.reset(new base::win::ScopedCOMInitializer());
- ui::win::CreateATLModuleIfNeeded();
- }
+ com_initializer_.reset(new base::win::ScopedCOMInitializer());
+ ui::win::CreateATLModuleIfNeeded();
#endif
gfx::RegisterPathProvider();
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698