| Index: chrome/browser/ui/webui/settings/reset_settings_handler.h
|
| diff --git a/chrome/browser/ui/webui/options/reset_profile_settings_handler.h b/chrome/browser/ui/webui/settings/reset_settings_handler.h
|
| similarity index 70%
|
| copy from chrome/browser/ui/webui/options/reset_profile_settings_handler.h
|
| copy to chrome/browser/ui/webui/settings/reset_settings_handler.h
|
| index e4e3440acdbe8fb1e334f150321e025116faf61b..5f67d59906c3862a19727ca1c57882f6fb5aa2e1 100644
|
| --- a/chrome/browser/ui/webui/options/reset_profile_settings_handler.h
|
| +++ b/chrome/browser/ui/webui/settings/reset_settings_handler.h
|
| @@ -2,15 +2,16 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_RESET_PROFILE_SETTINGS_HANDLER_H_
|
| -#define CHROME_BROWSER_UI_WEBUI_OPTIONS_RESET_PROFILE_SETTINGS_HANDLER_H_
|
| +#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_
|
| +#define CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_
|
|
|
| #include <string>
|
|
|
| #include "base/compiler_specific.h"
|
| +#include "base/macros.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/memory/weak_ptr.h"
|
| -#include "chrome/browser/ui/webui/options/options_ui.h"
|
| +#include "chrome/browser/ui/webui/settings/md_settings_ui.h"
|
|
|
| namespace base {
|
| class DictionaryValue;
|
| @@ -22,22 +23,16 @@ class BrandcodeConfigFetcher;
|
| class ProfileResetter;
|
| class ResettableSettingsSnapshot;
|
|
|
| -namespace options {
|
| +namespace settings {
|
|
|
| // Handler for both the 'Reset Profile Settings' overlay page and also the
|
| // corresponding banner that is shown at the top of the options page.
|
| -class ResetProfileSettingsHandler
|
| - : public OptionsPageUIHandler,
|
| - public base::SupportsWeakPtr<ResetProfileSettingsHandler> {
|
| +class ResetSettingsHandler
|
| + : public SettingsPageUIHandler,
|
| + public base::SupportsWeakPtr<ResetSettingsHandler> {
|
| public:
|
| - ResetProfileSettingsHandler();
|
| - ~ResetProfileSettingsHandler() override;
|
| -
|
| - // OptionsPageUIHandler implementation.
|
| - void GetLocalizedValues(base::DictionaryValue* localized_strings) override;
|
| - void InitializeHandler() override;
|
| - void InitializePage() override;
|
| - void Uninitialize() override;
|
| + explicit ResetSettingsHandler(content::WebUI* web_ui);
|
| + ~ResetSettingsHandler() override;
|
|
|
| // WebUIMessageHandler implementation.
|
| void RegisterMessages() override;
|
| @@ -55,9 +50,6 @@ class ResetProfileSettingsHandler
|
| // Called when the confirmation box disappears.
|
| void OnHideResetProfileDialog(const base::ListValue* value);
|
|
|
| - // Called when the reset banner is dismissed from the WebUI.
|
| - void OnDismissedResetProfileSettingsBanner(const base::ListValue* args);
|
| -
|
| // Called when BrandcodeConfigFetcher completed fetching settings.
|
| void OnSettingsFetched();
|
|
|
| @@ -86,9 +78,9 @@ class ResetProfileSettingsHandler
|
| // Contains Chrome brand code; empty for organic Chrome.
|
| std::string brandcode_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(ResetProfileSettingsHandler);
|
| + DISALLOW_COPY_AND_ASSIGN(ResetSettingsHandler);
|
| };
|
|
|
| -} // namespace options
|
| +} // namespace settings
|
|
|
| -#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_RESET_PROFILE_SETTINGS_HANDLER_H_
|
| +#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_
|
|
|