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

Unified Diff: chrome/browser/ui/webui/options/options_ui.h

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Initialize -> InitializeHandler, SendPageValues -> InitializePage Created 8 years, 9 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/ui/webui/options/options_ui.h
diff --git a/chrome/browser/ui/webui/options/options_ui.h b/chrome/browser/ui/webui/options/options_ui.h
index 3e6c10da0a8516ef0c05c0e8a5a03bc5bc783231..226c4e6358529a5b535ba46d42722a85eef02a33 100644
--- a/chrome/browser/ui/webui/options/options_ui.h
+++ b/chrome/browser/ui/webui/options/options_ui.h
@@ -33,7 +33,10 @@ class OptionsPageUIHandler : public content::WebUIMessageHandler,
// Initialize the page. Called once the DOM is available for manipulation.
// This will be called only once.
- virtual void Initialize() {}
+ virtual void InitializeHandler() {}
+
+ // Actually sends down values after initialization to the webui page.
+ virtual void InitializePage() {}
// Uninitializes the page. Called just before the object is destructed.
virtual void Uninitialize() {}

Powered by Google App Engine
This is Rietveld 408576698