Chromium Code Reviews| Index: base/sys_utils.h |
| diff --git a/base/android/sys_utils.h b/base/sys_utils.h |
| similarity index 52% |
| rename from base/android/sys_utils.h |
| rename to base/sys_utils.h |
| index 0841d0a7888d32b80eab953e174dc6e8d487e115..bb2a607d8b801d637a34c814dc6f7b4506741f67 100644 |
| --- a/base/android/sys_utils.h |
| +++ b/base/sys_utils.h |
| @@ -2,32 +2,26 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef BASE_ANDROID_SYS_UTILS_H_ |
| -#define BASE_ANDROID_SYS_UTILS_H_ |
| +#ifndef BASE_SYS_UTILS_H_ |
| +#define BASE_SYS_UTILS_H_ |
| -#include "base/android/jni_android.h" |
| +#include <stddef.h> |
|
brettw
2014/06/09 22:49:57
Blank line between these
c.shu
2014/06/10 17:36:26
Done.
|
| +#include "base/base_export.h" |
| namespace base { |
| -namespace android { |
| class BASE_EXPORT SysUtils { |
| public: |
| - static bool Register(JNIEnv* env); |
| - |
| // Returns true iff this is a low-end device. |
| static bool IsLowEndDevice(); |
| - // Return the device's RAM size in kilo-bytes. |
| + // Return the device's RAM size in kilo-bytes. Used for testing. |
| static size_t AmountOfPhysicalMemoryKB(); |
|
brettw
2014/06/09 22:49:57
It seems like these should be merged with base/sys
c.shu
2014/06/10 17:36:26
Right, this function simply returns SysInfo::Amoun
|
| private: |
| SysUtils(); |
| - |
| - static bool IsLowEndDeviceFromJni(); |
| - static size_t AmountOfPhysicalMemoryKBFromJni(); |
| }; |
| -} // namespace android |
| } // namespace base |
| -#endif // BASE_ANDROID_SYS_UTILS_H_ |
| +#endif // BASE_SYS_UTILS_H_ |