| Index: ui/base/win/metro.cc
|
| diff --git a/ui/base/win/metro.cc b/ui/base/win/metro.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1426278656e38c7cdeab14ae33f90ccbf2317b0e
|
| --- /dev/null
|
| +++ b/ui/base/win/metro.cc
|
| @@ -0,0 +1,20 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ui/base/win/metro.h"
|
| +
|
| +#include <string>
|
| +#include <windows.h>
|
| +
|
| +namespace ui {
|
| +
|
| +bool IsInMetroMode() {
|
| + const char* kMetroModeEnvVar = "CHROME_METRO_DLL";
|
| + char buffer[2];
|
| + if (!::GetEnvironmentVariableA(kMetroModeEnvVar, buffer, arraysize(buffer)))
|
| + return false;
|
| + return buffer == std::string("1");
|
| +}
|
| +
|
| +} // namespace ui
|
|
|