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

Unified Diff: base/android/sys_utils.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: Put low end device detection under the flag for all platforms except android. Created 6 years, 11 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: base/android/sys_utils.h
diff --git a/base/android/sys_utils.h b/base/android/sys_utils.h
deleted file mode 100644
index 0841d0a7888d32b80eab953e174dc6e8d487e115..0000000000000000000000000000000000000000
--- a/base/android/sys_utils.h
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// 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_
-
-#include "base/android/jni_android.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.
- static size_t AmountOfPhysicalMemoryKB();
-
- private:
- SysUtils();
-
- static bool IsLowEndDeviceFromJni();
- static size_t AmountOfPhysicalMemoryKBFromJni();
-};
-
-} // namespace android
-} // namespace base
-
-#endif // BASE_ANDROID_SYS_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698