| Index: content/browser/android/content_startup_flags.cc
|
| diff --git a/content/browser/android/content_startup_flags.cc b/content/browser/android/content_startup_flags.cc
|
| index 7202397494e9366954f521694cd8eb4af1a5e54d..ceebf043eabf35656de630238a7bbf8b2ed1c28f 100644
|
| --- a/content/browser/android/content_startup_flags.cc
|
| +++ b/content/browser/android/content_startup_flags.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "content/browser/android/content_startup_flags.h"
|
|
|
| +#include "base/android/build_info.h"
|
| #include "base/base_switches.h"
|
| #include "base/command_line.h"
|
| #include "base/logging.h"
|
| @@ -18,6 +19,12 @@
|
| #include "ui/native_theme/native_theme_switches.h"
|
|
|
| namespace content {
|
| +namespace {
|
| +
|
| +// Android SDK API level for the Jelly Bean release.
|
| +const int kAndroidJellyBeanApiLevel = 16;
|
| +
|
| +} // namespace
|
|
|
| void SetContentCommandLineFlags(bool single_process,
|
| const std::string& plugin_descriptor) {
|
| @@ -72,6 +79,12 @@ void SetContentCommandLineFlags(bool single_process,
|
|
|
| parsed_command_line->AppendSwitch(switches::kDisableGpuShaderDiskCache);
|
|
|
| + // Web Notifications are only supported on Android JellyBean and beyond.
|
| + if (base::android::BuildInfo::GetInstance()->sdk_int() <
|
| + kAndroidJellyBeanApiLevel) {
|
| + parsed_command_line->AppendSwitch(switches::kDisableNotifications);
|
| + }
|
| +
|
| parsed_command_line->AppendSwitch(switches::kEnableViewportMeta);
|
| parsed_command_line->AppendSwitch(
|
| switches::kMainFrameResizesAreOrientationChanges);
|
|
|