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

Unified Diff: chrome/common/chrome_version_info_linux.cc

Issue 9416106: Add chrome common files to android build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | « chrome/common/child_process_logging_posix.cc ('k') | chrome/common/chrome_version_info_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_version_info_linux.cc
diff --git a/chrome/common/chrome_version_info_linux.cc b/chrome/common/chrome_version_info_linux.cc
deleted file mode 100644
index b657cbd0c6203e2f7958745a380667694832d4d6..0000000000000000000000000000000000000000
--- a/chrome/common/chrome_version_info_linux.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2011 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/chrome_version_info.h"
-
-namespace chrome {
-
-// static
-std::string VersionInfo::GetVersionStringModifier() {
- char* env = getenv("CHROME_VERSION_EXTRA");
- if (!env)
- return std::string();
- std::string modifier(env);
-
-#if defined(GOOGLE_CHROME_BUILD)
- // Only ever return "", "unknown", "dev" or "beta" in a branded build.
- if (modifier == "unstable") // linux version of "dev"
- modifier = "dev";
- if (modifier == "stable") {
- modifier = "";
- } else if ((modifier == "dev") || (modifier == "beta")) {
- // do nothing.
- } else {
- modifier = "unknown";
- }
-#endif
-
- return modifier;
-}
-
-// static
-VersionInfo::Channel VersionInfo::GetChannel() {
-#if defined(GOOGLE_CHROME_BUILD)
- std::string channel = GetVersionStringModifier();
- if (channel.empty()) {
- return CHANNEL_STABLE;
- } else if (channel == "beta") {
- return CHANNEL_BETA;
- } else if (channel == "dev") {
- return CHANNEL_DEV;
- } else if (channel == "canary") {
- return CHANNEL_CANARY;
- }
-#endif
-
- return CHANNEL_UNKNOWN;
-}
-
-} // namespace chrome
« no previous file with comments | « chrome/common/child_process_logging_posix.cc ('k') | chrome/common/chrome_version_info_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698