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

Side by Side Diff: chrome/browser/ui/webui/options/automatic_settings_reset_handler.h

Issue 151003004: Add an automatic settings reset banner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on top of transaction patch. Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOMATIC_SETTINGS_RESET_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOMATIC_SETTINGS_RESET_HANDLER_H_
7
8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/ui/webui/options/options_ui.h"
10
11 namespace options {
12
13 // Handler for the banner that displays a settings reset event at the top of the
14 // settings page.
15 class AutomaticSettingsResetHandler : public OptionsPageUIHandler {
16 public:
17 AutomaticSettingsResetHandler();
18 virtual ~AutomaticSettingsResetHandler();
19
20 // OptionsPageUIHandler implementation.
21 virtual void GetLocalizedValues(
22 base::DictionaryValue* localized_strings) OVERRIDE;
23 virtual void InitializePage() OVERRIDE;
24
25 // WebUIMessageHandler implementation.
26 virtual void RegisterMessages() OVERRIDE;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(AutomaticSettingsResetHandler);
30 };
31
32 } // namespace options
33
34 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOMATIC_SETTINGS_RESET_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698