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

Unified Diff: chromeos/cryptohome/cryptohome_library.cc

Issue 23904025: Move IsRunningOnChromeOS to SysInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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: 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();

Powered by Google App Engine
This is Rietveld 408576698