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

Side by Side Diff: chrome/browser/ui/webui/settings/reset_settings_handler.h

Issue 2371303002: md-settings: add routing to chrome://settings/triggeredResetProfileSettings (Closed)
Patch Set: Rebase Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // Called when the reset profile dialog is shown. 64 // Called when the reset profile dialog is shown.
65 void OnShowResetProfileDialog(const base::ListValue* args); 65 void OnShowResetProfileDialog(const base::ListValue* args);
66 66
67 // Called when the reset profile dialog is hidden. 67 // Called when the reset profile dialog is hidden.
68 void OnHideResetProfileDialog(const base::ListValue* args); 68 void OnHideResetProfileDialog(const base::ListValue* args);
69 69
70 // Called when the reset profile banner is shown. 70 // Called when the reset profile banner is shown.
71 void OnHideResetProfileBanner(const base::ListValue* args); 71 void OnHideResetProfileBanner(const base::ListValue* args);
72 72
73 // Retrieve the triggered reset tool name, called from Javascript.
74 void HandleGetTriggeredResetToolName(const base::ListValue* args);
75
73 // Called when BrandcodeConfigFetcher completed fetching settings. 76 // Called when BrandcodeConfigFetcher completed fetching settings.
74 void OnSettingsFetched(); 77 void OnSettingsFetched();
75 78
76 // Resets profile settings to default values. |send_settings| is true if user 79 // Resets profile settings to default values. |send_settings| is true if user
77 // gave their consent to upload broken settings to Google for analysis. 80 // gave their consent to upload broken settings to Google for analysis.
78 void ResetProfile(std::string callback_id, bool send_settings); 81 void ResetProfile(std::string callback_id, bool send_settings);
79 82
80 // Closes the dialog once all requested settings has been reset. 83 // Closes the dialog once all requested settings has been reset.
81 void OnResetProfileSettingsDone(std::string callback_id, 84 void OnResetProfileSettingsDone(std::string callback_id,
82 bool send_feedback); 85 bool send_feedback);
(...skipping 16 matching lines...) Expand all
99 std::string brandcode_; 102 std::string brandcode_;
100 103
101 base::WeakPtrFactory<ResetSettingsHandler> weak_ptr_factory_; 104 base::WeakPtrFactory<ResetSettingsHandler> weak_ptr_factory_;
102 105
103 DISALLOW_COPY_AND_ASSIGN(ResetSettingsHandler); 106 DISALLOW_COPY_AND_ASSIGN(ResetSettingsHandler);
104 }; 107 };
105 108
106 } // namespace settings 109 } // namespace settings
107 110
108 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_ 111 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_RESET_SETTINGS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698