OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/options_util.h" | 5 #include "chrome/browser/ui/options/options_util.h" |
6 | 6 |
7 #include "base/thread_restrictions.h" | 7 #include "base/thread_restrictions.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/download/download_manager.h" | 9 #include "chrome/browser/download/download_manager.h" |
10 #include "chrome/browser/download/download_prefs.h" | 10 #include "chrome/browser/download/download_prefs.h" |
11 #include "chrome/browser/content_settings/host_content_settings_map.h" | 11 #include "chrome/browser/content_settings/host_content_settings_map.h" |
12 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" | 12 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" |
13 #include "chrome/browser/host_zoom_map.h" | 13 #include "chrome/browser/host_zoom_map.h" |
14 #include "chrome/browser/metrics/metrics_service.h" | 14 #include "chrome/browser/metrics/metrics_service.h" |
15 #include "chrome/browser/notifications/desktop_notification_service.h" | 15 #include "chrome/browser/notifications/desktop_notification_service.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 if (metrics) { | 123 if (metrics) { |
124 metrics->SetUserPermitsUpload(enabled); | 124 metrics->SetUserPermitsUpload(enabled); |
125 if (enabled) | 125 if (enabled) |
126 metrics->Start(); | 126 metrics->Start(); |
127 else | 127 else |
128 metrics->Stop(); | 128 metrics->Stop(); |
129 } | 129 } |
130 | 130 |
131 return enabled; | 131 return enabled; |
132 } | 132 } |
OLD | NEW |