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 9254c28e1aa722c3e971e8ea354e88890a3d9ce2..e5acab948e7afdab20e5bc6b3ea37e7399099955 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" |
@@ -70,6 +71,12 @@ void SetContentCommandLineFlags(bool single_process, |
if (base::SysInfo::IsLowEndDevice()) |
parsed_command_line->AppendSwitch(switches::kInProcessGPU); |
+ // Web Notifications are only supported on Android JellyBean and beyond. |
+ if (base::android::BuildInfo::GetInstance()->sdk_int() < |
+ base::android::SDK_VERSION_JELLY_BEAN) { |
+ parsed_command_line->AppendSwitch(switches::kDisableNotifications); |
+ } |
+ |
parsed_command_line->AppendSwitch(switches::kEnableViewportMeta); |
parsed_command_line->AppendSwitch( |
switches::kMainFrameResizesAreOrientationChanges); |