Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index 08fae2a991502a816dfea7c47c91cf56f88de6b3..3c518fb02a99b8fe38e248fbd93bb4e1b1bfebae 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -156,6 +156,10 @@ |
#include "chrome/browser/captive_portal/captive_portal_tab_helper.h" |
#endif |
+#if defined(ENABLE_MESSAGE_CENTER) |
+#include "ui/message_center/message_center_util.h" |
+#endif |
+ |
#if defined(OS_ANDROID) |
#include "ui/base/ui_base_paths.h" |
#endif |
@@ -1192,6 +1196,11 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches( |
if (content::IsThreadedCompositingEnabled()) |
command_line->AppendSwitch(switches::kEnableThreadedCompositing); |
+#if defined(ENABLE_MESSAGE_CENTER) |
+ if (message_center::IsRichNotificationEnabled()) |
+ command_line->AppendSwitch(switches::kDisableHTMLNotifications); |
+#endif |
+ |
// Please keep this in alphabetical order. |
static const char* const kSwitchNames[] = { |
switches::kAllowRequestOSFileHandleAPI, |