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

Side by Side Diff: chrome/browser/metrics/chrome_metrics_service_client.cc

Issue 299663011: Introduce MetricsServiceClient::StartGatheringMetrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_client.h ('k') | chrome/browser/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698