OLD | NEW |
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 #include "chrome/browser/ui/webui/options2/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 "content/public/browser/user_metrics.h" | 11 #include "content/public/browser/user_metrics.h" |
12 #include "content/public/browser/web_ui.h" | 12 #include "content/public/browser/web_ui.h" |
13 | 13 |
14 using content::UserMetricsAction; | 14 using content::UserMetricsAction; |
15 | 15 |
(...skipping 22 matching lines...) Expand all Loading... |
38 const bool enabled = (checked_str == "true"); | 38 const bool enabled = (checked_str == "true"); |
39 content::RecordAction( | 39 content::RecordAction( |
40 enabled ? | 40 enabled ? |
41 UserMetricsAction("Options_MetricsReportingCheckbox_Enable") : | 41 UserMetricsAction("Options_MetricsReportingCheckbox_Enable") : |
42 UserMetricsAction("Options_MetricsReportingCheckbox_Disable")); | 42 UserMetricsAction("Options_MetricsReportingCheckbox_Disable")); |
43 #endif | 43 #endif |
44 } | 44 } |
45 | 45 |
46 } // namespace options | 46 } // namespace options |
47 } // namespace chromeos | 47 } // namespace chromeos |
OLD | NEW |