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

Unified Diff: content/public/browser/web_ui_message_handler.h

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/public/browser/web_ui_message_handler.h
diff --git a/content/public/browser/web_ui_message_handler.h b/content/public/browser/web_ui_message_handler.h
index b6908769a00b28a824e51271db0a724a03e39c08..107ca51ff41197143fd7274f34aa1a2b29264f09 100644
--- a/content/public/browser/web_ui_message_handler.h
+++ b/content/public/browser/web_ui_message_handler.h
@@ -28,7 +28,12 @@ class WebUIImpl;
// host is destroyed.
class CONTENT_EXPORT WebUIMessageHandler {
public:
+ explicit WebUIMessageHandler(WebUI* web_ui) : web_ui_(web_ui) {}
+
+ // DEPRECATED. Use WebUIMessageHandler(WebUI*) constructor instead.
+ // TODO(tommycli): Remove once legacy callers gone.
WebUIMessageHandler() : web_ui_(nullptr) {}
+
virtual ~WebUIMessageHandler() {}
protected:
@@ -56,6 +61,8 @@ class CONTENT_EXPORT WebUIMessageHandler {
// Returns the attached WebUI for this handler.
WebUI* web_ui() const { return web_ui_; }
+ // DEPRECATED. Attach during construction instead. May be kept for testing.
+ // TODO(tommycli): Remove once callers gone - or rename to SetWebUIForTesting.
// Sets the attached WebUI - exposed to subclasses for testing purposes.
void set_web_ui(WebUI* web_ui) { web_ui_ = web_ui; }
« content/browser/webui/web_ui_impl.cc ('K') | « content/browser/webui/web_ui_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698