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

Side by Side Diff: chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.h

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: code shuffling Created 8 years, 9 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER2_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/webui/options2/options_ui2.h" 10 #include "chrome/browser/ui/webui/options2/options_ui2.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 namespace options2 { 13 namespace options2 {
14 14
15 // ChromeOS handler for "Stats/crash reporting to Google" option of the Advanced 15 // ChromeOS handler for "Stats/crash reporting to Google" option of the Advanced
16 // settings page. This handler does only ChromeOS-specific actions while default 16 // settings page. This handler does only ChromeOS-specific actions while default
17 // code is in Chrome's AdvancedOptionsHandler 17 // code is in Chrome's AdvancedOptionsHandler
18 // (chrome/browser/webui/advanced_options_handler.cc). 18 // (chrome/browser/webui/advanced_options_handler.cc).
19 class StatsOptionsHandler : public OptionsPageUIHandler { 19 class StatsOptionsHandler : public OptionsPageUIHandler {
20 public: 20 public:
21 StatsOptionsHandler(); 21 StatsOptionsHandler();
22 22
23 // OptionsPageUIHandler implementation. 23 // OptionsPageUIHandler implementation.
24 virtual void GetLocalizedValues( 24 virtual void GetLocalizedValues(
25 base::DictionaryValue* localized_strings) OVERRIDE; 25 base::DictionaryValue* localized_strings) OVERRIDE;
26 virtual void Initialize() OVERRIDE;
27 26
28 // WebUIMessageHandler implementation. 27 // WebUIMessageHandler implementation.
29 virtual void RegisterMessages() OVERRIDE; 28 virtual void RegisterMessages() OVERRIDE;
30 29
31 private: 30 private:
32 void HandleMetricsReportingCheckbox(const base::ListValue* args); 31 void HandleMetricsReportingCheckbox(const base::ListValue* args);
33 32
34 DISALLOW_COPY_AND_ASSIGN(StatsOptionsHandler); 33 DISALLOW_COPY_AND_ASSIGN(StatsOptionsHandler);
35 }; 34 };
36 35
37 } // namespace options2 36 } // namespace options2
38 } // namespace chromeos 37 } // namespace chromeos
39 38
40 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER2_H_ 39 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_STATS_OPTIONS_HANDLER2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698