| Index: chrome/browser/chromeos/preferences.cc
|
| diff --git a/chrome/browser/chromeos/preferences.cc b/chrome/browser/chromeos/preferences.cc
|
| index 21a57faf7760f0024ce6b7f2f3f011887dc01c1c..df889bd380f703a720c3aab68cbae2359d63262e 100644
|
| --- a/chrome/browser/chromeos/preferences.cc
|
| +++ b/chrome/browser/chromeos/preferences.cc
|
| @@ -16,7 +16,6 @@
|
| #include "base/strings/string_split.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| -#include "base/sys_info.h"
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/chrome_notification_types.h"
|
| #include "chrome/browser/chromeos/accessibility/magnification_manager.h"
|
| @@ -32,6 +31,7 @@
|
| #include "chrome/common/chrome_features.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chromeos/chromeos_switches.h"
|
| +#include "chromeos/system/devicemode.h"
|
| #include "chromeos/system/statistics_provider.h"
|
| #include "chromeos/timezone/timezone_resolver.h"
|
| #include "components/drive/drive_pref_names.h"
|
| @@ -111,7 +111,7 @@ void Preferences::RegisterProfilePrefs(
|
| user_prefs::PrefRegistrySyncable* registry) {
|
| std::string hardware_keyboard_id;
|
| // TODO(yusukes): Remove the runtime hack.
|
| - if (base::SysInfo::IsRunningOnChromeOS()) {
|
| + if (IsRunningAsSystemCompositor()) {
|
| DCHECK(g_browser_process);
|
| PrefService* local_state = g_browser_process->local_state();
|
| DCHECK(local_state);
|
|
|