Index: chrome/browser/dom_ui/options/browser_options_handler.h |
diff --git a/chrome/browser/dom_ui/options/browser_options_handler.h b/chrome/browser/dom_ui/options/browser_options_handler.h |
index a564f4c56f882b981026938a917db2c618c972f4..5d6a8c894edb59842ecd9cc9500e161c582d3a36 100644 |
--- a/chrome/browser/dom_ui/options/browser_options_handler.h |
+++ b/chrome/browser/dom_ui/options/browser_options_handler.h |
@@ -7,12 +7,14 @@ |
#pragma once |
#include "chrome/browser/dom_ui/options/options_ui.h" |
+#include "chrome/browser/prefs/pref_member.h" |
#include "chrome/browser/search_engines/template_url_model_observer.h" |
#include "chrome/browser/shell_integration.h" |
#include "ui/base/models/table_model_observer.h" |
class CustomHomePagesTableModel; |
class OptionsManagedBannerHandler; |
+class StringPrefMember; |
class TemplateURLModel; |
// Chrome browser options page UI handler. |
@@ -44,6 +46,9 @@ class BrowserOptionsHandler : public OptionsPageUIHandler, |
virtual void OnItemsRemoved(int start, int length); |
private: |
+ // Sets the home page to the given string. Called from DOMUI. |
+ void SetHomePage(const ListValue* args); |
+ |
// Makes this the default browser. Called from DOMUI. |
void BecomeDefaultBrowser(const ListValue* args); |
@@ -85,6 +90,8 @@ class BrowserOptionsHandler : public OptionsPageUIHandler, |
scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; |
+ StringPrefMember homepage_; |
+ |
TemplateURLModel* template_url_model_; // Weak. |
// TODO(stuartmorgan): Once there are no other clients of |