Index: chrome/browser/ui/webui/options/core_options_handler.cc |
diff --git a/chrome/browser/ui/webui/options/core_options_handler.cc b/chrome/browser/ui/webui/options/core_options_handler.cc |
index dec707a4a7e251e7a6342c27d966d10c9f918aee..a2f470acfd2ace71da10d54e79458adb12f74154 100644 |
--- a/chrome/browser/ui/webui/options/core_options_handler.cc |
+++ b/chrome/browser/ui/webui/options/core_options_handler.cc |
@@ -6,6 +6,7 @@ |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
+#include "base/callback.h" |
Alexei Svitkine (slow)
2014/09/11 15:33:43
Remove this line, since you're only now deleting c
gayane -on leave until 09-2017
2014/09/11 17:06:08
Done.
|
#include "base/json/json_reader.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/strings/string16.h" |
@@ -16,7 +17,6 @@ |
#include "chrome/browser/chrome_notification_types.h" |
#include "chrome/browser/extensions/extension_service.h" |
#include "chrome/browser/extensions/extension_util.h" |
-#include "chrome/browser/metrics/metrics_reporting_state.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/common/url_constants.h" |
@@ -43,18 +43,6 @@ namespace options { |
namespace { |
-// Only allow changes to the metrics reporting checkbox if we were succesfully |
-// able to change the service. |
-bool AllowMetricsReportingChange(const base::Value* to_value) { |
- bool enable; |
- if (!to_value->GetAsBoolean(&enable)) { |
- NOTREACHED(); |
- return false; |
- } |
- |
- return enable == ResolveMetricsReportingEnabled(enable); |
-} |
- |
// Whether "controlledBy" property of pref value sent to options web UI needs to |
// be set to "extension" when the preference is controlled by an extension. |
bool CanSetExtensionControlledPrefValue( |
@@ -90,8 +78,6 @@ void CoreOptionsHandler::InitializeHandler() { |
base::Unretained(this), |
profile->GetPrefs())); |
- pref_change_filters_[prefs::kMetricsReportingEnabled] = |
- base::Bind(&AllowMetricsReportingChange); |
pref_change_filters_[prefs::kBrowserGuestModeEnabled] = |
base::Bind(&CoreOptionsHandler::IsUserUnsupervised, |
base::Unretained(this)); |