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

Side by Side Diff: chrome/common/histogram_synchronizer.cc

Issue 155876: Revert r21117 as it caused reliability failures.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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
« no previous file with comments | « chrome/common/child_thread.cc ('k') | chrome/common/ipc_channel_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <string> 5 #include <string>
6 6
7 #include "base/histogram.h" 7 #include "base/histogram.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/thread.h"
11 #include "chrome/browser/browser.h" 10 #include "chrome/browser/browser.h"
12 #include "chrome/browser/browser_list.h" 11 #include "chrome/browser/browser_list.h"
13 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/renderer_host/render_process_host.h" 13 #include "chrome/browser/renderer_host/render_process_host.h"
15 #include "chrome/common/child_thread.h" 14 #include "chrome/common/child_thread.h"
16 #include "chrome/common/render_messages.h" 15 #include "chrome/common/render_messages.h"
17 #include "chrome/common/histogram_synchronizer.h" 16 #include "chrome/common/histogram_synchronizer.h"
18 17
19 using base::Time; 18 using base::Time;
20 using base::TimeDelta; 19 using base::TimeDelta;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 251
253 bool HistogramSynchronizer::IsOnIoThread() { 252 bool HistogramSynchronizer::IsOnIoThread() {
254 if (io_message_loop_ == NULL) { 253 if (io_message_loop_ == NULL) {
255 io_message_loop_ = MessageLoop::current(); 254 io_message_loop_ = MessageLoop::current();
256 } 255 }
257 return (MessageLoop::current() == io_message_loop_); 256 return (MessageLoop::current() == io_message_loop_);
258 } 257 }
259 258
260 // static 259 // static
261 HistogramSynchronizer* HistogramSynchronizer::histogram_synchronizer_ = NULL; 260 HistogramSynchronizer* HistogramSynchronizer::histogram_synchronizer_ = NULL;
OLDNEW
« no previous file with comments | « chrome/common/child_thread.cc ('k') | chrome/common/ipc_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698