Index: chromeos/cryptohome/cryptohome_library.cc |
diff --git a/chromeos/cryptohome/cryptohome_library.cc b/chromeos/cryptohome/cryptohome_library.cc |
index 46ccbb5393e6744552a5a59d8fca6905d7a952bc..61d6fed2d5d6d59f8147424604a763d7c0564f50 100644 |
--- a/chromeos/cryptohome/cryptohome_library.cc |
+++ b/chromeos/cryptohome/cryptohome_library.cc |
@@ -7,10 +7,10 @@ |
#include <map> |
#include "base/bind.h" |
-#include "base/chromeos/chromeos_version.h" |
#include "base/memory/weak_ptr.h" |
#include "base/strings/string_number_conversions.h" |
#include "base/strings/string_util.h" |
+#include "base/sys_info.h" |
#include "chromeos/dbus/cryptohome_client.h" |
#include "chromeos/dbus/dbus_thread_manager.h" |
#include "crypto/encryptor.h" |
@@ -122,7 +122,7 @@ class CryptohomeLibraryImpl : public CryptohomeLibrary { |
virtual std::string EncryptWithSystemSalt(const std::string& token) OVERRIDE { |
// Don't care about token encryption while debugging. |
- if (!base::chromeos::IsRunningOnChromeOS()) |
+ if (!base::SysInfo::IsRunningOnChromeOS()) |
return token; |
if (!LoadSystemSaltKey()) { |
@@ -137,7 +137,7 @@ class CryptohomeLibraryImpl : public CryptohomeLibrary { |
virtual std::string DecryptWithSystemSalt( |
const std::string& encrypted_token_hex) OVERRIDE { |
// Don't care about token encryption while debugging. |
- if (!base::chromeos::IsRunningOnChromeOS()) |
+ if (!base::SysInfo::IsRunningOnChromeOS()) |
return encrypted_token_hex; |
if (!LoadSystemSaltKey()) { |
@@ -317,7 +317,7 @@ static CryptohomeLibrary* g_test_cryptohome_library = NULL; |
// static |
void CryptohomeLibrary::Initialize() { |
CHECK(!g_cryptohome_library); |
- if (base::chromeos::IsRunningOnChromeOS()) |
+ if (base::SysInfo::IsRunningOnChromeOS()) |
g_cryptohome_library = new CryptohomeLibraryImpl(); |
else |
g_cryptohome_library = new CryptohomeLibraryStubImpl(); |