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

Side by Side Diff: chrome/browser/jankometer.cc

Issue 10539083: Remove gtk_util.h from jankometer.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « no previous file | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/jankometer.h"
6
5 #include <limits> 7 #include <limits>
6 8
7 #include "chrome/browser/jankometer.h"
8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram.h"
15 #include "base/metrics/stats_counters.h" 15 #include "base/metrics/stats_counters.h"
16 #include "base/string_util.h" 16 #include "base/string_util.h"
17 #include "base/threading/thread.h" 17 #include "base/threading/thread.h"
18 #include "base/threading/watchdog.h" 18 #include "base/threading/watchdog.h"
19 #include "base/time.h" 19 #include "base/time.h"
20 #include "build/build_config.h" 20 #include "build/build_config.h"
21 #include "chrome/browser/browser_process.h" 21 #include "chrome/browser/browser_process.h"
22 #include "chrome/common/chrome_switches.h" 22 #include "chrome/common/chrome_switches.h"
23 #include "content/public/browser/browser_thread.h" 23 #include "content/public/browser/browser_thread.h"
24 24
25 #if defined(TOOLKIT_GTK)
26 #include "chrome/browser/ui/gtk/gtk_util.h"
27 #endif
28
29 using base::TimeDelta; 25 using base::TimeDelta;
30 using base::TimeTicks; 26 using base::TimeTicks;
31 using content::BrowserThread; 27 using content::BrowserThread;
32 28
33 namespace { 29 namespace {
34 30
35 // The maximum threshold of delay of the message before considering it a delay. 31 // The maximum threshold of delay of the message before considering it a delay.
36 // For a debug build, you may want to set IO delay around 500ms. 32 // For a debug build, you may want to set IO delay around 500ms.
37 // For a release build, setting it around 350ms is sensible. 33 // For a release build, setting it around 350ms is sensible.
38 // Visit about:histograms to see what the distribution is on your system, with 34 // Visit about:histograms to see what the distribution is on your system, with
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 delete ui_observer; 415 delete ui_observer;
420 ui_observer = NULL; 416 ui_observer = NULL;
421 } 417 }
422 if (io_observer) { 418 if (io_observer) {
423 // IO thread can't be running when we remove observers. 419 // IO thread can't be running when we remove observers.
424 DCHECK((!g_browser_process) || !(g_browser_process->io_thread())); 420 DCHECK((!g_browser_process) || !(g_browser_process->io_thread()));
425 delete io_observer; 421 delete io_observer;
426 io_observer = NULL; 422 io_observer = NULL;
427 } 423 }
428 } 424 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698