Skip to content

Commit

Permalink
Split bug 418183 into separate bugs for each janky piece and remove the
Browse files Browse the repository at this point in the history
remaining instrumentation of non-janky functions.

BUG=418183,462774,462778,462780,462784,462788,462789
TEST=none
TBR=rvargas,jochen,rpaquay,zea

Review URL: https://codereview.chromium.org/970463002

Cr-Commit-Position: refs/heads/master@{#318597}
  • Loading branch information
pkasting authored and Commit bot committed Feb 28, 2015
1 parent 6ccace4 commit cdf6fe7
Show file tree
Hide file tree
Showing 18 changed files with 21 additions and 148 deletions.
6 changes: 0 additions & 6 deletions base/files/file_path_watcher_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/message_loop/message_loop_proxy.h"
#include "base/profiler/scoped_tracker.h"
#include "base/time/time.h"
#include "base/win/object_watcher.h"

Expand Down Expand Up @@ -147,11 +146,6 @@ void FilePathWatcherImpl::WillDestroyCurrentMessageLoop() {
}

void FilePathWatcherImpl::OnObjectSignaled(HANDLE object) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 FilePathWatcherImpl::OnObjectSignaled"));

DCHECK(object == handle_);
// Make sure we stay alive through the body of this function.
scoped_refptr<FilePathWatcherImpl> keep_alive(this);
Expand Down
6 changes: 0 additions & 6 deletions base/process/kill_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
#include "base/process/process_iterator.h"
#include "base/profiler/scoped_tracker.h"
#include "base/win/object_watcher.h"

namespace base {
Expand Down Expand Up @@ -71,11 +70,6 @@ void TimerExpiredTask::TimedOut() {
}

void TimerExpiredTask::OnObjectSignaled(HANDLE object) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 TimerExpiredTask::OnObjectSignaled"));

process_.Close();
}

Expand Down
6 changes: 0 additions & 6 deletions base/synchronization/waitable_event_watcher_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "base/synchronization/waitable_event_watcher.h"

#include "base/compiler_specific.h"
#include "base/profiler/scoped_tracker.h"
#include "base/synchronization/waitable_event.h"
#include "base/win/object_watcher.h"

Expand Down Expand Up @@ -37,11 +36,6 @@ WaitableEvent* WaitableEventWatcher::GetWatchedEvent() {
}

void WaitableEventWatcher::OnObjectSignaled(HANDLE h) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 WaitableEventWatcher::OnObjectSignaled"));

WaitableEvent* event = event_;
EventCallback callback = callback_;
event_ = NULL;
Expand Down
6 changes: 0 additions & 6 deletions chrome/common/service_process_util_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/path_service.h"
#include "base/profiler/scoped_tracker.h"
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
#include "base/win/object_watcher.h"
Expand Down Expand Up @@ -64,11 +63,6 @@ class ServiceProcessTerminateMonitor

// base::ObjectWatcher::Delegate implementation.
virtual void OnObjectSignaled(HANDLE object) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 ServiceProcessTerminateMonitor::OnObjectSignaled"));

if (!terminate_task_.is_null()) {
terminate_task_.Run();
terminate_task_.Reset();
Expand Down
11 changes: 0 additions & 11 deletions chrome/service/cloud_print/print_system_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "base/files/file_util.h"
#include "base/json/json_writer.h"
#include "base/memory/scoped_ptr.h"
#include "base/profiler/scoped_tracker.h"
#include "base/strings/utf_string_conversions.h"
#include "base/win/object_watcher.h"
#include "base/win/scoped_bstr.h"
Expand Down Expand Up @@ -89,11 +88,6 @@ class PrintSystemWatcherWin : public base::win::ObjectWatcher::Delegate {

// base::ObjectWatcher::Delegate method
virtual void OnObjectSignaled(HANDLE object) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 PrintSystemWatcherWin::OnObjectSignaled"));

crash_keys::ScopedPrinterInfo crash_key(printer_info_);
DWORD change = 0;
FindNextPrinterChangeNotification(object, &change, NULL, NULL);
Expand Down Expand Up @@ -355,11 +349,6 @@ class JobSpoolerWin : public PrintSystem::JobSpooler {

// base::win::ObjectWatcher::Delegate implementation.
virtual void OnObjectSignaled(HANDLE object) override {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is
// fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION("Core_OnObjectSignaled"));

DCHECK(xps_print_job_.get());
DCHECK(object == job_progress_event_.Get());
ResetEvent(job_progress_event_.Get());
Expand Down
6 changes: 0 additions & 6 deletions components/policy/core/common/policy_loader_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram.h"
#include "base/metrics/sparse_histogram.h"
#include "base/profiler/scoped_tracker.h"
#include "base/scoped_native_library.h"
#include "base/sequenced_task_runner.h"
#include "base/stl_util.h"
Expand Down Expand Up @@ -683,11 +682,6 @@ void PolicyLoaderWin::SetupWatches() {
}

void PolicyLoaderWin::OnObjectSignaled(HANDLE object) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 PolicyLoaderWin::OnObjectSignaled"));

DCHECK(object == user_policy_changed_event_.handle() ||
object == machine_policy_changed_event_.handle())
<< "unexpected object signaled policy reload, obj = "
Expand Down
6 changes: 0 additions & 6 deletions device/hid/hid_connection_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "base/files/file.h"
#include "base/message_loop/message_loop.h"
#include "base/numerics/safe_conversions.h"
#include "base/profiler/scoped_tracker.h"
#include "base/win/object_watcher.h"
#include "components/device_event_log/device_event_log.h"

Expand Down Expand Up @@ -90,11 +89,6 @@ void PendingHidTransfer::TakeResultFromWindowsAPI(BOOL result) {
}

void PendingHidTransfer::OnObjectSignaled(HANDLE event_handle) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 PendingHidTransfer::OnObjectSignaled"));

callback_.Run(this, true);
Release();
}
Expand Down
4 changes: 2 additions & 2 deletions google_apis/gcm/base/socket_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ SocketInputStream::State SocketInputStream::GetState() const {

void SocketInputStream::RefreshCompletionCallback(
const base::Closure& callback, int result) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
// TODO(pkasting): Remove ScopedTracker below once crbug.com/462788 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 DoReadCallback => SocketInputStream::RefreshCompletionC..."));
"462788 SocketInputStream::RefreshCompletionCallback"));

// If an error occurred before the completion callback could complete, ignore
// the result.
Expand Down
5 changes: 0 additions & 5 deletions net/base/network_change_notifier_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,6 @@ void NetworkChangeNotifierWin::SetCurrentConnectionType(
}

void NetworkChangeNotifierWin::OnObjectSignaled(HANDLE object) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 NetworkChangeNotifierWin::OnObjectSignaled"));

DCHECK(CalledOnValidThread());
DCHECK(is_watching_);
is_watching_ = false;
Expand Down
6 changes: 0 additions & 6 deletions net/dns/dns_config_service_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram.h"
#include "base/profiler/scoped_tracker.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
Expand Down Expand Up @@ -310,11 +309,6 @@ class RegistryWatcher : public base::NonThreadSafe {
}

void OnObjectSignaled() {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 RegistryWatcher::OnObjectSignaled"));

DCHECK(CalledOnValidThread());
DCHECK(!callback_.is_null());
if (key_.StartWatching(base::Bind(&RegistryWatcher::OnObjectSignaled,
Expand Down
5 changes: 0 additions & 5 deletions net/http/http_stream_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,6 @@ int HttpStreamParser::ReadResponseBody(IOBuffer* buf, int buf_len,
}

void HttpStreamParser::OnIOComplete(int result) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 DidCompleteReadWrite => HttpStreamParser::OnIOComplete"));

result = DoLoop(result);

// The client callback can do anything, including destroying this class,
Expand Down
6 changes: 0 additions & 6 deletions net/proxy/proxy_config_service_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "base/bind_helpers.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/profiler/scoped_tracker.h"
#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "base/strings/string_tokenizer.h"
Expand Down Expand Up @@ -113,11 +112,6 @@ bool ProxyConfigServiceWin::AddKeyToWatchList(HKEY rootkey,
}

void ProxyConfigServiceWin::OnObjectSignaled(base::win::RegKey* key) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 ProxyConfigServiceWin::OnObjectSignaled"));

// Figure out which registry key signalled this change.
RegKeyList::iterator it =
std::find(keys_to_watch_.begin(), keys_to_watch_.end(), key);
Expand Down
14 changes: 0 additions & 14 deletions net/socket/ssl_client_socket_nss.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2296,10 +2296,6 @@ void SSLClientSocketNSS::Core::DoReadCallback(int rv) {
PostOrRunCallback(
FROM_HERE,
base::Bind(&Core::DidNSSRead, this, rv));
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile1(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 SSLClientSocketNSS::Core::DoReadCallback"));
PostOrRunCallback(
FROM_HERE,
base::Bind(base::ResetAndReturn(&user_read_callback_), rv));
Expand Down Expand Up @@ -2724,11 +2720,6 @@ void SSLClientSocketNSS::Core::DidNSSWrite(int result) {
}

void SSLClientSocketNSS::Core::BufferSendComplete(int result) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 DidCompleteReadWrite => Core::BufferSendComplete"));

if (!OnNSSTaskRunner()) {
if (detached_)
return;
Expand Down Expand Up @@ -2772,11 +2763,6 @@ void SSLClientSocketNSS::Core::OnGetChannelIDComplete(int result) {
void SSLClientSocketNSS::Core::BufferRecvComplete(
IOBuffer* read_buffer,
int result) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 DidCompleteReadWrite => SSLClientSocketNSS::Core::..."));

DCHECK(read_buffer);

if (!OnNSSTaskRunner()) {
Expand Down
6 changes: 0 additions & 6 deletions net/socket/stream_listen_socket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/posix/eintr_wrapper.h"
#include "base/profiler/scoped_tracker.h"
#include "base/sys_byteorder.h"
#include "base/threading/platform_thread.h"
#include "build/build_config.h"
Expand Down Expand Up @@ -247,11 +246,6 @@ void StreamListenSocket::UnwatchSocket() {
#if defined(OS_WIN)
// MessageLoop watcher callback.
void StreamListenSocket::OnObjectSignaled(HANDLE object) {
// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 StreamListenSocket::OnObjectSignaled"));

WSANETWORKEVENTS ev;
if (kSocketError == WSAEnumNetworkEvents(socket_, socket_event_, &ev)) {
// TODO
Expand Down
4 changes: 2 additions & 2 deletions net/socket/tcp_client_socket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ void TCPClientSocket::DidCompleteReadWrite(const CompletionCallback& callback,
if (result > 0)
use_history_.set_was_used_to_convey_data();

// TODO(vadimt): Remove ScopedTracker below once crbug.com/418183 is fixed.
// TODO(pkasting): Remove ScopedTracker below once crbug.com/462780 is fixed.
tracked_objects::ScopedTracker tracking_profile(
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"418183 TCPClientSocket::DidCompleteReadWrite"));
"462780 TCPClientSocket::DidCompleteReadWrite"));
callback.Run(result);
}

Expand Down
Loading

0 comments on commit cdf6fe7

Please sign in to comment.