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

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

Issue 9224002: Make WebUI objects not derive from WebUI. WebUI objects own the controller. This is the ownership... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to head to clear linux_chromeos browsertest failures Created 8 years, 11 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 #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 "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 17
17 StatsOptionsHandler::StatsOptionsHandler() { 18 StatsOptionsHandler::StatsOptionsHandler() {
18 } 19 }
19 20
20 // OptionsPageUIHandler implementation. 21 // OptionsPageUIHandler implementation.
(...skipping 17 matching lines...) Expand all
38 const std::string checked_str = UTF16ToUTF8(ExtractStringValue(args)); 39 const std::string checked_str = UTF16ToUTF8(ExtractStringValue(args));
39 const bool enabled = (checked_str == "true"); 40 const bool enabled = (checked_str == "true");
40 content::RecordAction( 41 content::RecordAction(
41 enabled ? 42 enabled ?
42 UserMetricsAction("Options_MetricsReportingCheckbox_Enable") : 43 UserMetricsAction("Options_MetricsReportingCheckbox_Enable") :
43 UserMetricsAction("Options_MetricsReportingCheckbox_Disable")); 44 UserMetricsAction("Options_MetricsReportingCheckbox_Disable"));
44 #endif 45 #endif
45 } 46 }
46 47
47 } // namespace chromeos 48 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698