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

Unified Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.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
Index: chrome/browser/chromeos/chrome_browser_main_chromeos.cc
diff --git a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
index fd251f28bcf4c3eea1847197c806ff03e22ffb68..41687b41a4ca3a77f35618b45732e1151904fa69 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -11,7 +11,6 @@
#include "ash/shell.h"
#include "base/bind.h"
#include "base/callback.h"
-#include "base/chromeos/chromeos_version.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/lazy_instance.h"
@@ -259,7 +258,7 @@ namespace internal {
class DBusServices {
public:
explicit DBusServices(const content::MainFunctionParams& parameters) {
- if (!base::chromeos::IsRunningOnChromeOS()) {
+ if (!base::SysInfo::IsRunningOnChromeOS()) {
// Override this path on the desktop, so that the user policy key can be
// stored by the stub SessionManagerClient.
base::FilePath user_data_dir;
@@ -299,7 +298,7 @@ class DBusServices {
// detector starts to monitor changes from the update engine.
UpgradeDetectorChromeos::GetInstance()->Init();
- if (base::chromeos::IsRunningOnChromeOS()) {
+ if (base::SysInfo::IsRunningOnChromeOS()) {
// Disable Num Lock on X start up for http://crosbug.com/29169.
input_method::InputMethodManager::Get()->GetXKeyboard()->
SetNumLockEnabled(false);
@@ -370,7 +369,7 @@ void ChromeBrowserMainPartsChromeos::PreEarlyInitialization() {
// If we're not running on real ChromeOS hardware (or under VM), and are not
// showing the login manager or attempting a command line login, login with a
// stub user.
- if (!base::chromeos::IsRunningOnChromeOS() &&
+ if (!base::SysInfo::IsRunningOnChromeOS() &&
!parsed_command_line().HasSwitch(switches::kLoginManager) &&
!parsed_command_line().HasSwitch(switches::kLoginUser) &&
!parsed_command_line().HasSwitch(switches::kGuestSession)) {
@@ -440,7 +439,7 @@ void ChromeBrowserMainPartsChromeos::PreMainMessageLoopRun() {
// volume on the login screen, if Chrome is running on Chrome OS
// (i.e. not Linux desktop), and in non-test mode.
// Note: SystemKeyEventListener depends on the DBus thread.
- if (base::chromeos::IsRunningOnChromeOS() &&
+ if (base::SysInfo::IsRunningOnChromeOS() &&
!parameters().ui_task) { // ui_task is non-NULL when running tests.
SystemKeyEventListener::Initialize();
}
« no previous file with comments | « chrome/browser/chromeos/app_mode/kiosk_profile_loader.cc ('k') | chrome/browser/chromeos/dbus/cros_dbus_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698