Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 13160004: Re-implement form validation message UI with native widgets. (Common and Mac) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: adddress review comments, and add a test Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 af5a007d0303e75102d24265a070e750f95470f9..1ea80e37d4512ee9d80d6c64c5f0d5a3eefc4b60 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -78,6 +78,7 @@
#include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h"
#include "chrome/browser/user_style_sheet_watcher.h"
#include "chrome/browser/user_style_sheet_watcher_factory.h"
+#include "chrome/browser/validation_message_message_filter.h"
#include "chrome/common/child_process_logging.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
@@ -726,6 +727,10 @@ void ChromeContentBrowserClient::RenderProcessHostCreated(
id, profile, context));
host->GetChannel()->AddFilter(
new prerender::PrerenderMessageFilter(id, profile));
+#if defined(OS_MACOSX)
+ // TODO(tkent): Enable it for other platforms.
+ host->GetChannel()->AddFilter(new ValidationMessageMessageFilter(id));
+#endif
host->Send(new ChromeViewMsg_SetIsIncognitoProcess(
profile->IsOffTheRecord()));

Powered by Google App Engine
This is Rietveld 408576698