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

Unified Diff: chrome/browser/dom_ui/options/options_ui.h

Issue 6291012: Prevent double inialization of DOMUI pref handlers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bump copyright Created 9 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/dom_ui/options/options_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/options/options_ui.h
diff --git a/chrome/browser/dom_ui/options/options_ui.h b/chrome/browser/dom_ui/options/options_ui.h
index ad1007de07c1ffb82290b34393980bb807adf0d6..1ceab2cee75e830e2a88250cae712b7f85dde32a 100644
--- a/chrome/browser/dom_ui/options/options_ui.h
+++ b/chrome/browser/dom_ui/options/options_ui.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -53,6 +53,7 @@ class OptionsPageUIHandler : public DOMMessageHandler,
virtual void GetLocalizedValues(DictionaryValue* localized_strings) = 0;
// Initialize the page. Called once the DOM is available for manipulation.
+ // This will be called only once.
virtual void Initialize() {}
// Uninitializes the page. Called just before the object is destructed.
@@ -91,6 +92,8 @@ class OptionsUI : public DOMUI {
void AddOptionsPageUIHandler(DictionaryValue* localized_strings,
OptionsPageUIHandler* handler);
+ bool initialized_handlers_;
+
DISALLOW_COPY_AND_ASSIGN(OptionsUI);
};
« no previous file with comments | « no previous file | chrome/browser/dom_ui/options/options_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698