summaryrefslogtreecommitdiffstats
path: root/content/browser/android/content_startup_flags.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/android/content_startup_flags.cc')
-rw-r--r--content/browser/android/content_startup_flags.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/browser/android/content_startup_flags.cc b/content/browser/android/content_startup_flags.cc
index 9254c28..e5acab9 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);