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

Unified Diff: base/android/sys_utils_android.h

Issue 119493005: Expose a low-end device mode override flags for non-android OSs as well (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years 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: base/android/sys_utils_android.h
diff --git a/base/android/sys_utils.h b/base/android/sys_utils_android.h
similarity index 69%
copy from base/android/sys_utils.h
copy to base/android/sys_utils_android.h
index 9b3152b466ca64024356ff9011845190d1bd64fb..235e13f81a96b8f8b031729c0e279257a1d2b268 100644
--- a/base/android/sys_utils.h
+++ b/base/android/sys_utils_android.h
@@ -2,32 +2,28 @@
// 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_ANDROID_H_
+#define BASE_SYS_UTILS_ANDROID_H_
#include "base/android/jni_android.h"
+#include "base/sys_utils.h"
namespace base {
namespace android {
-class BASE_EXPORT SysUtils {
+class BASE_EXPORT SysUtilsAndroid {
public:
static bool Register(JNIEnv* env);
// Returns true iff this is a low-end device.
- static bool IsLowEndDevice();
+ static bool IsLowEndDeviceFromJni();
// Return the device's RAM size in kilo-bytes. Used for testing.
- static size_t AmountOfPhysicalMemoryKB();
-
- private:
- SysUtils();
-
- static bool IsLowEndDeviceFromJni();
static size_t AmountOfPhysicalMemoryKBFromJni();
+
};
} // namespace android
} // namespace base
-#endif // BASE_ANDROID_SYS_UTILS_H_
+#endif // BASE_SYS_UTILS_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698