OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "ui/base/win/metro.h" | |
6 | |
7 #include <string> | |
8 #include <windows.h> | |
9 | |
10 namespace ui { | |
11 | |
12 bool IsInMetroMode() { | |
13 const char* kMetroModeEnvVar = "CHROME_METRO_DLL"; | |
14 char buffer[2]; | |
15 if (!::GetEnvironmentVariableA(kMetroModeEnvVar, buffer, arraysize(buffer))) | |
16 return false; | |
17 return buffer == std::string("1"); | |
18 } | |
19 | |
20 } // namespace ui | |
OLD | NEW |