| Index: base/sys_info.cc
|
| diff --git a/base/sys_info.cc b/base/sys_info.cc
|
| index cb93480b9793ecde36dd33d447d17b35accc016c..72a9944b9729ac4e9e9443fb4a79045bde801cf0 100644
|
| --- a/base/sys_info.cc
|
| +++ b/base/sys_info.cc
|
| @@ -19,15 +19,9 @@ static const int kLowMemoryDeviceThresholdMB = 512;
|
|
|
| bool DetectLowEndDevice() {
|
| CommandLine* command_line = CommandLine::ForCurrentProcess();
|
| - int int_value = 0;
|
| - if (command_line->HasSwitch(switches::kLowEndDeviceMode)) {
|
| - std::string string_value =
|
| - command_line->GetSwitchValueASCII(switches::kLowEndDeviceMode);
|
| - StringToInt(string_value, &int_value);
|
| - }
|
| - if (int_value == 1)
|
| + if (command_line->HasSwitch(switches::kEnableLowEndDeviceMode))
|
| return true;
|
| - if (int_value != 2)
|
| + if (command_line->HasSwitch(switches::kDisableLowEndDeviceMode))
|
| return false;
|
|
|
| int ram_size_mb = SysInfo::AmountOfPhysicalMemoryMB();
|
|
|