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

Side by Side Diff: chrome/browser/chromeos/external_metrics.cc

Issue 6594063: Update a bunch of files to the new location of browser_thread.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 (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/chromeos/external_metrics.h" 5 #include "chrome/browser/chromeos/external_metrics.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <stdio.h> 8 #include <stdio.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <string.h> 10 #include <string.h>
11 #include <unistd.h> 11 #include <unistd.h>
12 #include <sys/file.h> 12 #include <sys/file.h>
13 #include <sys/stat.h> 13 #include <sys/stat.h>
14 #include <sys/types.h> 14 #include <sys/types.h>
15 15
16 #include "base/basictypes.h" 16 #include "base/basictypes.h"
17 #include "base/eintr_wrapper.h" 17 #include "base/eintr_wrapper.h"
18 #include "base/metrics/histogram.h" 18 #include "base/metrics/histogram.h"
19 #include "base/perftimer.h" 19 #include "base/perftimer.h"
20 #include "base/time.h" 20 #include "base/time.h"
21 #include "chrome/browser/browser_process.h" 21 #include "chrome/browser/browser_process.h"
22 #include "chrome/browser/browser_thread.h"
23 #include "chrome/browser/metrics/metrics_service.h" 22 #include "chrome/browser/metrics/metrics_service.h"
24 #include "chrome/browser/metrics/user_metrics.h" 23 #include "chrome/browser/metrics/user_metrics.h"
24 #include "content/browser/browser_thread.h"
25 25
26 namespace chromeos { 26 namespace chromeos {
27 27
28 // The interval between external metrics collections, in milliseconds. 28 // The interval between external metrics collections, in milliseconds.
29 static const int kExternalMetricsCollectionIntervalMs = 30 * 1000; 29 static const int kExternalMetricsCollectionIntervalMs = 30 * 1000;
30 30
31 ExternalMetrics::ExternalMetrics() 31 ExternalMetrics::ExternalMetrics()
32 : test_recorder_(NULL) { 32 : test_recorder_(NULL) {
33 } 33 }
34 34
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 void ExternalMetrics::ScheduleCollector() { 227 void ExternalMetrics::ScheduleCollector() {
228 bool result; 228 bool result;
229 result = BrowserThread::PostDelayedTask( 229 result = BrowserThread::PostDelayedTask(
230 BrowserThread::FILE, FROM_HERE, NewRunnableMethod( 230 BrowserThread::FILE, FROM_HERE, NewRunnableMethod(
231 this, &chromeos::ExternalMetrics::CollectEventsAndReschedule), 231 this, &chromeos::ExternalMetrics::CollectEventsAndReschedule),
232 kExternalMetricsCollectionIntervalMs); 232 kExternalMetricsCollectionIntervalMs);
233 DCHECK(result); 233 DCHECK(result);
234 } 234 }
235 235
236 } // namespace chromeos 236 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/enterprise_extension_observer.cc ('k') | chrome/browser/chromeos/google_update_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698