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

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

Issue 7518012: Revert 94350 - Merge 94322 - Rewire the metrics pref to the signed settings store on chromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/835/src/
Patch Set: Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_OPTIONS_CHROMEOS_STATS_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STATS_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STATS_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STATS_OPTIONS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler. h" 9 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler. h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 class MetricsCrosSettingsProvider;
14
13 // 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
14 // settings page. This handler does only ChromeOS-specific actions while default 16 // settings page. This handler does only ChromeOS-specific actions while default
15 // code is in Chrome's AdvancedOptionsHandler 17 // code is in Chrome's AdvancedOptionsHandler
16 // (chrome/browser/webui/advanced_options_handler.cc). 18 // (chrome/browser/webui/advanced_options_handler.cc).
17 class StatsOptionsHandler : public CrosOptionsPageUIHandler { 19 class StatsOptionsHandler : public CrosOptionsPageUIHandler {
18 public: 20 public:
19 StatsOptionsHandler(); 21 StatsOptionsHandler();
20 22
21 // OptionsPageUIHandler implementation. 23 // OptionsPageUIHandler implementation.
22 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); 24 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings);
23 virtual void Initialize(); 25 virtual void Initialize();
24 26
25 // WebUIMessageHandler implementation. 27 // WebUIMessageHandler implementation.
26 virtual void RegisterMessages(); 28 virtual void RegisterMessages();
27 29
28 private: 30 private:
31 MetricsCrosSettingsProvider* provider() const;
29 void HandleMetricsReportingCheckbox(const base::ListValue* args); 32 void HandleMetricsReportingCheckbox(const base::ListValue* args);
33 void SetupMetricsReportingCheckbox(bool user_changed);
30 34
31 DISALLOW_COPY_AND_ASSIGN(StatsOptionsHandler); 35 DISALLOW_COPY_AND_ASSIGN(StatsOptionsHandler);
32 }; 36 };
33 37
34 } // namespace chromeos 38 } // namespace chromeos
35 39
36 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STATS_OPTIONS_HANDLER_H_ 40 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_STATS_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/crashes_ui.cc ('k') | chrome/browser/ui/webui/options/chromeos/stats_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698