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

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

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/thread_watcher.h" 5 #include "chrome/browser/metrics/thread_watcher.h"
6 6
7 #include <math.h> // ceil 7 #include <math.h> // ceil
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/debug/alias.h" 10 #include "base/debug/alias.h"
11 #include "base/string_tokenizer.h" 11 #include "base/string_tokenizer.h"
12 #include "base/threading/thread_restrictions.h" 12 #include "base/threading/thread_restrictions.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "chrome/browser/metrics/metrics_service.h" 14 #include "chrome/browser/metrics/metrics_service.h"
15 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
16 #include "chrome/common/chrome_version_info.h" 16 #include "chrome/common/chrome_version_info.h"
17 #include "chrome/common/logging_chrome.h" 17 #include "chrome/common/logging_chrome.h"
18 #include "content/common/notification_service.h"
19 18
20 #if defined(OS_WIN) 19 #if defined(OS_WIN)
21 #include "base/win/windows_version.h" 20 #include "base/win/windows_version.h"
22 #endif 21 #endif
23 22
24 // ThreadWatcher methods and members. 23 // ThreadWatcher methods and members.
25 ThreadWatcher::ThreadWatcher(const WatchingParams& params) 24 ThreadWatcher::ThreadWatcher(const WatchingParams& params)
26 : thread_id_(params.thread_id), 25 : thread_id_(params.thread_id),
27 thread_name_(params.thread_name), 26 thread_name_(params.thread_name),
28 watched_loop_( 27 watched_loop_(
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 784
786 #if defined(OS_WIN) 785 #if defined(OS_WIN)
787 // On Windows XP, give twice the time for shutdown. 786 // On Windows XP, give twice the time for shutdown.
788 if (base::win::GetVersion() <= base::win::VERSION_XP) 787 if (base::win::GetVersion() <= base::win::VERSION_XP)
789 actual_duration *= 2; 788 actual_duration *= 2;
790 #endif 789 #endif
791 790
792 shutdown_watchdog_ = new ShutdownWatchDogThread(actual_duration); 791 shutdown_watchdog_ = new ShutdownWatchDogThread(actual_duration);
793 shutdown_watchdog_->Arm(); 792 shutdown_watchdog_->Arm();
794 } 793 }
OLDNEW
« no previous file with comments | « chrome/browser/metrics/metrics_service_uitest.cc ('k') | chrome/browser/net/chrome_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698