summaryrefslogtreecommitdiffstats
path: root/chrome/browser/metrics/metrics_service.cc
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-07 12:03:42 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-07 12:03:42 +0000
commited10dd138cfcb174ac890133e7fe40da91e5b04f (patch)
tree56316df961cf55cf73884d7b886eca581a7ca46f /chrome/browser/metrics/metrics_service.cc
parent2a349e9b87611c6971a410a056376e87808fbfca (diff)
downloadchromium_src-ed10dd138cfcb174ac890133e7fe40da91e5b04f.zip
chromium_src-ed10dd138cfcb174ac890133e7fe40da91e5b04f.tar.gz
chromium_src-ed10dd138cfcb174ac890133e7fe40da91e5b04f.tar.bz2
Remove BrowserThread::UnsafeGetBrowserThread, add UnsafeGetMessageLoopForThread.
This also removes several accessors on BrowserProcess that are no longer used. I wanted to remove all retrieval of MessageLoop objects via BrowserThread, but this proved harder than it looked, because several net:: classes use MessageLoop and have fairly deep assumptions that it is a real MessageLoop, e.g. they use MessageLoopForIO with its IO observers and so forth. Therefore, we now have UnsafeGetMessageLoopForThread but UnsafeGetBrowserThread is gone. TBR=abodenha@chromium.org BUG=98716 Review URL: http://codereview.chromium.org/8769013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113377 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/metrics/metrics_service.cc')
-rw-r--r--chrome/browser/metrics/metrics_service.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index 54519dd..90ac13e 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -800,7 +800,9 @@ void MetricsService::StartRecording() {
// initialization steps (such as plugin list generation) necessary
// for sending the initial log. This avoids blocking the main UI
// thread.
- g_browser_process->file_thread()->message_loop()->PostDelayedTask(FROM_HERE,
+ BrowserThread::PostDelayedTask(
+ BrowserThread::FILE,
+ FROM_HERE,
base::Bind(&MetricsService::InitTaskGetHardwareClass,
base::Unretained(this),
MessageLoop::current()->message_loop_proxy()),