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

Unified Diff: chrome/browser/ui/webui/options2/options_ui2.h

Issue 9224002: Make WebUI objects not derive from WebUI. WebUI objects own the controller. This is the ownership... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to head to clear linux_chromeos browsertest failures Created 8 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
Index: chrome/browser/ui/webui/options2/options_ui2.h
===================================================================
--- chrome/browser/ui/webui/options2/options_ui2.h (revision 117871)
+++ chrome/browser/ui/webui/options2/options_ui2.h (working copy)
@@ -7,11 +7,11 @@
#pragma once
#include <string>
+#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
-#include "content/browser/webui/web_ui.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_types.h"
@@ -82,10 +82,10 @@
};
// The WebUI for chrome:settings-frame.
-class OptionsUI : public WebUI, public content::WebUIController,
+class OptionsUI : public content::WebUIController,
public OptionsPageUIHandlerHost {
public:
- explicit OptionsUI(content::WebContents* contents);
+ explicit OptionsUI(WebUI* web_ui);
virtual ~OptionsUI();
static RefCountedMemory* GetFaviconResourceBytes();
@@ -109,6 +109,8 @@
bool initialized_handlers_;
+ std::vector<OptionsPageUIHandler*> handlers_;
+
DISALLOW_COPY_AND_ASSIGN(OptionsUI);
};

Powered by Google App Engine
This is Rietveld 408576698