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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/stats_options_handler.cc

Issue 10837331: Options: s/options2/options/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wut Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options2/chromeos/stats_options_handler.cc
diff --git a/chrome/browser/ui/webui/options2/chromeos/stats_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/stats_options_handler.cc
deleted file mode 100644
index 8bef6b3525c2d419a883981017311fc1f59a4049..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/options2/chromeos/stats_options_handler.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/webui/options2/chromeos/stats_options_handler.h"
-
-#include "base/bind.h"
-#include "base/bind_helpers.h"
-#include "base/utf_string_conversions.h"
-#include "base/values.h"
-#include "content/public/browser/user_metrics.h"
-#include "content/public/browser/web_ui.h"
-
-using content::UserMetricsAction;
-
-namespace chromeos {
-namespace options {
-
-StatsOptionsHandler::StatsOptionsHandler() {
-}
-
-// OptionsPageUIHandler implementation.
-void StatsOptionsHandler::GetLocalizedValues(
- DictionaryValue* localized_strings) {
-}
-
-// WebUIMessageHandler implementation.
-void StatsOptionsHandler::RegisterMessages() {
- web_ui()->RegisterMessageCallback("metricsReportingCheckboxAction",
- base::Bind(&StatsOptionsHandler::HandleMetricsReportingCheckbox,
- base::Unretained(this)));
-}
-
-void StatsOptionsHandler::HandleMetricsReportingCheckbox(
- const ListValue* args) {
-#if defined(GOOGLE_CHROME_BUILD)
- const std::string checked_str = UTF16ToUTF8(ExtractStringValue(args));
- const bool enabled = (checked_str == "true");
- content::RecordAction(
- enabled ?
- UserMetricsAction("Options_MetricsReportingCheckbox_Enable") :
- UserMetricsAction("Options_MetricsReportingCheckbox_Disable"));
-#endif
-}
-
-} // namespace options
-} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698