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

Unified Diff: ash/test/test_suite.cc

Issue 178883004: Enable the volume slider in Ash for windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix COM initialization errors (the right way). Created 6 years, 9 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_helper_unittest.cc ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | 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 00a73c7e0bf625b07eff676869fee251e744cac1..11e1285a45df41646873b68010b9b6b9c2228d39 100644
--- a/ash/test/test_suite.cc
+++ b/ash/test/test_suite.cc
@@ -33,12 +33,14 @@ void AuraShellTestSuite::Initialize() {
gfx::GLSurface::InitializeOneOffForTests(true);
#if defined(OS_WIN)
- if (base::win::GetVersion() >= base::win::VERSION_WIN8 &&
+ base::win::Version version = base::win::GetVersion();
+ if (version >= base::win::VERSION_WIN7 &&
!CommandLine::ForCurrentProcess()->HasSwitch(
ash::switches::kForceAshToDesktop)) {
com_initializer_.reset(new base::win::ScopedCOMInitializer());
ui::win::CreateATLModuleIfNeeded();
- ASSERT_TRUE(win8::MakeTestDefaultBrowserSynchronously());
+ if (version >= base::win::VERSION_WIN8)
+ ASSERT_TRUE(win8::MakeTestDefaultBrowserSynchronously());
}
#endif
« no previous file with comments | « ash/test/ash_test_helper_unittest.cc ('k') | chrome/test/base/in_process_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698