| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/metrics/chrome_metrics_service_client.h" | 5 #include "chrome/browser/metrics/chrome_metrics_service_client.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 10 #include "base/logging.h" |
| 10 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 11 #include "base/threading/platform_thread.h" | 12 #include "base/threading/platform_thread.h" |
| 12 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 13 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
| 15 #include "chrome/browser/google/google_util.h" | 16 #include "chrome/browser/google/google_util.h" |
| 16 #include "chrome/browser/memory_details.h" | 17 #include "chrome/browser/memory_details.h" |
| 17 #include "chrome/browser/metrics/metrics_service.h" | 18 #include "chrome/browser/metrics/metrics_service.h" |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 case content::NOTIFICATION_RENDER_WIDGET_HOST_HANG: | 276 case content::NOTIFICATION_RENDER_WIDGET_HOST_HANG: |
| 276 // TODO(isherman): Remove this NULL check: http://crbug.com/375248 | 277 // TODO(isherman): Remove this NULL check: http://crbug.com/375248 |
| 277 if (service_) | 278 if (service_) |
| 278 service_->OnApplicationNotIdle(); | 279 service_->OnApplicationNotIdle(); |
| 279 break; | 280 break; |
| 280 | 281 |
| 281 default: | 282 default: |
| 282 NOTREACHED(); | 283 NOTREACHED(); |
| 283 } | 284 } |
| 284 } | 285 } |
| 286 |
| 287 void ChromeMetricsServiceClient::StartGatheringMetrics( |
| 288 const base::Closure& done_callback) { |
| 289 // TODO(blundell): Move metrics gathering tasks from MetricsService to here. |
| 290 done_callback.Run(); |
| 291 } |
| OLD | NEW |