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

Unified Diff: chrome/browser/extensions/api/gcd_private/gcd_private_api.cc

Issue 671783002: Reverting instrumentations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/gcd_private/gcd_private_api.cc
diff --git a/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc b/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc
index 113733227c5226916a265f22c8a76206de25b867..e3e893a385391be7b3bd0fd449a948677c0a015d 100644
--- a/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc
+++ b/chrome/browser/extensions/api/gcd_private/gcd_private_api.cc
@@ -8,7 +8,6 @@
#include "base/memory/linked_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
-#include "base/profiler/scoped_profile.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/local_discovery/cloud_device_list.h"
#include "chrome/browser/local_discovery/cloud_print_printer_list.h"
@@ -275,10 +274,6 @@ GcdPrivateAPIImpl::~GcdPrivateAPIImpl() {
}
void GcdPrivateAPIImpl::OnListenerAdded(const EventListenerInfo& details) {
- // TODO(vadimt): Remove ScopedProfile below once crbug.com/417106 is fixed.
- tracked_objects::ScopedProfile tracking_profile(
- FROM_HERE_WITH_EXPLICIT_FUNCTION("GcdPrivateAPIImpl::OnListenerAdded"));
-
if (details.event_name == gcd_private::OnDeviceStateChanged::kEventName ||
details.event_name == gcd_private::OnDeviceRemoved::kEventName) {
num_device_listeners_++;

Powered by Google App Engine
This is Rietveld 408576698