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

Unified Diff: chrome/browser/ui/webui/settings/reset_profile_settings_handler.h

Issue 1418803004: MD Settings: Migrating C++ handlers for profile reset page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove usage of max-width to fix dialog positioning. Created 5 years, 1 month 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/settings/reset_profile_settings_handler.h
diff --git a/chrome/browser/ui/webui/options/reset_profile_settings_handler.h b/chrome/browser/ui/webui/settings/reset_profile_settings_handler.h
similarity index 76%
copy from chrome/browser/ui/webui/options/reset_profile_settings_handler.h
copy to chrome/browser/ui/webui/settings/reset_profile_settings_handler.h
index e4e3440acdbe8fb1e334f150321e025116faf61b..021d8a166f4a6b67333771e397d419a251be83c9 100644
--- a/chrome/browser/ui/webui/options/reset_profile_settings_handler.h
+++ b/chrome/browser/ui/webui/settings/reset_profile_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_PROFILE_SETTINGS_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_PROFILE_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,23 +23,17 @@ 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 SettingsPageUIHandler,
public base::SupportsWeakPtr<ResetProfileSettingsHandler> {
public:
- ResetProfileSettingsHandler();
+ explicit ResetProfileSettingsHandler(content::WebUI* web_ui);
~ResetProfileSettingsHandler() override;
- // OptionsPageUIHandler implementation.
- void GetLocalizedValues(base::DictionaryValue* localized_strings) override;
- void InitializeHandler() override;
- void InitializePage() override;
- void Uninitialize() 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();
@@ -89,6 +81,6 @@ class ResetProfileSettingsHandler
DISALLOW_COPY_AND_ASSIGN(ResetProfileSettingsHandler);
};
-} // namespace options
+} // namespace settings
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_RESET_PROFILE_SETTINGS_HANDLER_H_
+#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_PROFILE_SETTINGS_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698