| OLD | NEW |
| 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/options2/chromeos/stats_options_handler2.h" | 5 #include "chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.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 "content/browser/webui/web_ui.h" |
| 11 #include "content/public/browser/user_metrics.h" | 12 #include "content/public/browser/user_metrics.h" |
| 12 | 13 |
| 13 using content::UserMetricsAction; | 14 using content::UserMetricsAction; |
| 14 | 15 |
| 15 namespace chromeos { | 16 namespace chromeos { |
| 16 namespace options2 { | 17 namespace options2 { |
| 17 | 18 |
| 18 StatsOptionsHandler::StatsOptionsHandler() { | 19 StatsOptionsHandler::StatsOptionsHandler() { |
| 19 } | 20 } |
| 20 | 21 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 40 const bool enabled = (checked_str == "true"); | 41 const bool enabled = (checked_str == "true"); |
| 41 content::RecordAction( | 42 content::RecordAction( |
| 42 enabled ? | 43 enabled ? |
| 43 UserMetricsAction("Options_MetricsReportingCheckbox_Enable") : | 44 UserMetricsAction("Options_MetricsReportingCheckbox_Enable") : |
| 44 UserMetricsAction("Options_MetricsReportingCheckbox_Disable")); | 45 UserMetricsAction("Options_MetricsReportingCheckbox_Disable")); |
| 45 #endif | 46 #endif |
| 46 } | 47 } |
| 47 | 48 |
| 48 } // namespace options2 | 49 } // namespace options2 |
| 49 } // namespace chromeos | 50 } // namespace chromeos |
| OLD | NEW |