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

Unified Diff: base/chromeos/chromeos_version.cc

Issue 23904025: Move IsRunningOnChromeOS to SysInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge fix Created 7 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 | « base/chromeos/chromeos_version.h ('k') | base/file_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/chromeos/chromeos_version.cc
diff --git a/base/chromeos/chromeos_version.cc b/base/chromeos/chromeos_version.cc
deleted file mode 100644
index 4a70cd5312aad80213e9eb3cdd7c9e6ec420411b..0000000000000000000000000000000000000000
--- a/base/chromeos/chromeos_version.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-// 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 "base/chromeos/chromeos_version.h"
-
-#include <stdlib.h>
-#include <string.h>
-
-#include "base/logging.h"
-
-namespace base {
-namespace chromeos {
-
-bool IsRunningOnChromeOS() {
- // Check if the user name is chronos. Note that we don't go with
- // getuid() + getpwuid_r() as it may end up reading /etc/passwd, which
- // can be expensive.
- const char* user = getenv("USER");
- return user && strcmp(user, "chronos") == 0;
-}
-
-} // namespace chromeos
-} // namespace base
« no previous file with comments | « base/chromeos/chromeos_version.h ('k') | base/file_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698