| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <jni.h> | 5 #include <jni.h> |
| 6 | 6 |
| 7 #include "chrome/browser/android/chrome_startup_flags.h" | 7 #include "chrome/browser/android/chrome_startup_flags.h" |
| 8 | 8 |
| 9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 switches::kPrerenderModeSwitchValueAuto); | 40 switches::kPrerenderModeSwitchValueAuto); |
| 41 | 41 |
| 42 // Enable prerender for the omnibox. | 42 // Enable prerender for the omnibox. |
| 43 SetCommandLineSwitchASCII(switches::kPrerenderFromOmnibox, | 43 SetCommandLineSwitchASCII(switches::kPrerenderFromOmnibox, |
| 44 switches::kPrerenderFromOmniboxSwitchValueEnabled); | 44 switches::kPrerenderFromOmniboxSwitchValueEnabled); |
| 45 | 45 |
| 46 // Disable syncing favicons on low end devices. | 46 // Disable syncing favicons on low end devices. |
| 47 if (base::SysInfo::IsLowEndDevice()) | 47 if (base::SysInfo::IsLowEndDevice()) |
| 48 SetCommandLineSwitchASCII(switches::kDisableSyncTypes, "Favicon Images"); | 48 SetCommandLineSwitchASCII(switches::kDisableSyncTypes, "Favicon Images"); |
| 49 | 49 |
| 50 // Enable DOM Distiller on local builds, canary and dev-channel. | 50 // Enable DOM Distiller backend. |
| 51 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel(); | 51 SetCommandLineSwitch(switches::kEnableDomDistiller); |
| 52 if (channel == chrome::VersionInfo::CHANNEL_UNKNOWN || | |
| 53 channel == chrome::VersionInfo::CHANNEL_CANARY || | |
| 54 channel == chrome::VersionInfo::CHANNEL_DEV) { | |
| 55 SetCommandLineSwitch(switches::kEnableDomDistiller); | |
| 56 } | |
| 57 } | 52 } |
| OLD | NEW |