| 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 30 matching lines...) Expand all Loading... |
| 41 SetCommandLineSwitchASCII( | 41 SetCommandLineSwitchASCII( |
| 42 switches::kPrerenderMode, switches::kPrerenderModeSwitchValueEnabled); | 42 switches::kPrerenderMode, switches::kPrerenderModeSwitchValueEnabled); |
| 43 SetCommandLineSwitchASCII( | 43 SetCommandLineSwitchASCII( |
| 44 switches::kPrerenderFromOmnibox, | 44 switches::kPrerenderFromOmnibox, |
| 45 switches::kPrerenderFromOmniboxSwitchValueEnabled); | 45 switches::kPrerenderFromOmniboxSwitchValueEnabled); |
| 46 if (base::android::SysUtils::IsLowEndDevice()) | 46 if (base::android::SysUtils::IsLowEndDevice()) |
| 47 SetCommandLineSwitch(switches::kDisableSyncFavicons); | 47 SetCommandLineSwitch(switches::kDisableSyncFavicons); |
| 48 #if defined(GOOGLE_TV) | 48 #if defined(GOOGLE_TV) |
| 49 SetCommandLineSwitch(switches::kPpapiInProcess); | 49 SetCommandLineSwitch(switches::kPpapiInProcess); |
| 50 #endif | 50 #endif |
| 51 // Disable <canvas> path antialiasing. | |
| 52 SetCommandLineSwitch(switches::kDisable2dCanvasAntialiasing); | |
| 53 } | 51 } |
| OLD | NEW |