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

Unified Diff: content/browser/webui/web_ui_impl.cc

Issue 1421893005: Settings Rewrite: Fork SyncSetupHandler for MD-Settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: content/browser/webui/web_ui_impl.cc
diff --git a/content/browser/webui/web_ui_impl.cc b/content/browser/webui/web_ui_impl.cc
index 8a24604a40316487b15139bf166280312bfc81d8..5022d8d394c06b4df3a0c2aa599b48d0203e2f6a 100644
--- a/content/browser/webui/web_ui_impl.cc
+++ b/content/browser/webui/web_ui_impl.cc
@@ -223,7 +223,7 @@ void WebUIImpl::ProcessWebUIMessage(const GURL& source_url,
// WebUIImpl, protected: -------------------------------------------------------
void WebUIImpl::AddMessageHandler(WebUIMessageHandler* handler) {
Dan Beam 2015/10/29 01:47:20 this would be cooler, IMO: template<class T> T* W
tommycli 2015/10/29 17:34:14 Agreed. Unfortunately the vast majority of the 50-
- DCHECK(!handler->web_ui());
+ DCHECK(!handler->web_ui() || handler->web_ui() == this);
handler->set_web_ui(this);
handler->RegisterMessages();
handlers_.push_back(handler);

Powered by Google App Engine
This is Rietveld 408576698