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

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

Issue 7867044: PART1: Initiated the SignedSettings refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final rebase to ToT before hitting the CQ. Created 9 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 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 #include "chrome/browser/ui/webui/options/chromeos/stats_options_handler.h" 5 #include "chrome/browser/ui/webui/options/chromeos/stats_options_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/chromeos/user_cros_settings_provider.h" 11 #include "chrome/browser/chromeos/user_cros_settings_provider.h"
12 #include "content/browser/user_metrics.h" 12 #include "content/browser/user_metrics.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 StatsOptionsHandler::StatsOptionsHandler() 16 StatsOptionsHandler::StatsOptionsHandler() {
17 : CrosOptionsPageUIHandler(new UserCrosSettingsProvider) {
18 } 17 }
19 18
20 // OptionsPageUIHandler implementation. 19 // OptionsPageUIHandler implementation.
21 void StatsOptionsHandler::GetLocalizedValues( 20 void StatsOptionsHandler::GetLocalizedValues(
22 DictionaryValue* localized_strings) { 21 DictionaryValue* localized_strings) {
23 } 22 }
24 23
25 void StatsOptionsHandler::Initialize() { 24 void StatsOptionsHandler::Initialize() {
26 } 25 }
27 26
(...skipping 10 matching lines...) Expand all
38 const std::string checked_str = UTF16ToUTF8(ExtractStringValue(args)); 37 const std::string checked_str = UTF16ToUTF8(ExtractStringValue(args));
39 const bool enabled = (checked_str == "true"); 38 const bool enabled = (checked_str == "true");
40 UserMetrics::RecordAction( 39 UserMetrics::RecordAction(
41 enabled ? 40 enabled ?
42 UserMetricsAction("Options_MetricsReportingCheckbox_Enable") : 41 UserMetricsAction("Options_MetricsReportingCheckbox_Enable") :
43 UserMetricsAction("Options_MetricsReportingCheckbox_Disable")); 42 UserMetricsAction("Options_MetricsReportingCheckbox_Disable"));
44 #endif 43 #endif
45 } 44 }
46 45
47 } // namespace chromeos 46 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698