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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 if (base::android::SysUtils::IsLowEndDevice()) | 48 if (base::android::SysUtils::IsLowEndDevice()) |
49 SetCommandLineSwitchASCII(switches::kDisableSyncTypes, "Favicon Images"); | 49 SetCommandLineSwitchASCII(switches::kDisableSyncTypes, "Favicon Images"); |
50 | 50 |
51 // Enable DOM Distiller on local builds, canary and dev-channel. | 51 // Enable DOM Distiller on local builds, canary and dev-channel. |
52 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel(); | 52 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel(); |
53 if (channel == chrome::VersionInfo::CHANNEL_UNKNOWN || | 53 if (channel == chrome::VersionInfo::CHANNEL_UNKNOWN || |
54 channel == chrome::VersionInfo::CHANNEL_CANARY || | 54 channel == chrome::VersionInfo::CHANNEL_CANARY || |
55 channel == chrome::VersionInfo::CHANNEL_DEV) { | 55 channel == chrome::VersionInfo::CHANNEL_DEV) { |
56 SetCommandLineSwitch(switches::kEnableDomDistiller); | 56 SetCommandLineSwitch(switches::kEnableDomDistiller); |
57 } | 57 } |
| 58 |
| 59 // Enable the Fast Text Autosizer on local builds, canary and dev-channel. |
| 60 if (channel == chrome::VersionInfo::CHANNEL_UNKNOWN || |
| 61 channel == chrome::VersionInfo::CHANNEL_CANARY || |
| 62 channel == chrome::VersionInfo::CHANNEL_DEV) { |
| 63 SetCommandLineSwitch(switches::kEnableFastTextAutosizing); |
| 64 } |
58 } | 65 } |
OLD | NEW |