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

Unified Diff: chrome/common/env_util.cc

Issue 4079: Porting refactoring changes:... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 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
Index: chrome/common/env_util.cc
===================================================================
--- chrome/common/env_util.cc (revision 2544)
+++ chrome/common/env_util.cc (working copy)
@@ -1,46 +0,0 @@
-// Copyright (c) 2006-2008 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 "chrome/common/env_util.h"
-
-#include "base/basictypes.h"
-#include "base/logging.h"
-
-namespace env_util {
-
-std::string GetOperatingSystemName() {
- return "Windows";
-}
-
-std::string GetOperatingSystemVersion() {
- OSVERSIONINFO info = {0};
- info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
- GetVersionEx(&info);
-
- char result[20];
- memset(result, 0, arraysize(result));
- _snprintf_s(result, arraysize(result),
- "%lu.%lu", info.dwMajorVersion, info.dwMinorVersion);
- return std::string(result);
-}
-
-std::string GetCPUArchitecture() {
- // TODO: Make this vary when we support any other architectures.
- return "x86";
-}
-
-void GetPrimaryDisplayDimensions(int* width, int* height) {
- if (width)
- *width = GetSystemMetrics(SM_CXSCREEN);
-
- if (height)
- *height = GetSystemMetrics(SM_CYSCREEN);
-}
-
-int GetDisplayCount() {
- return GetSystemMetrics(SM_CMONITORS);
-}
-
-} // namespace env_util
-

Powered by Google App Engine
This is Rietveld 408576698