summaryrefslogtreecommitdiffstats
path: root/extensions/browser/api/bluetooth/bluetooth_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/browser/api/bluetooth/bluetooth_api.cc')
-rw-r--r--extensions/browser/api/bluetooth/bluetooth_api.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/extensions/browser/api/bluetooth/bluetooth_api.cc b/extensions/browser/api/bluetooth/bluetooth_api.cc
index 2e1e4bc..c59a084 100644
--- a/extensions/browser/api/bluetooth/bluetooth_api.cc
+++ b/extensions/browser/api/bluetooth/bluetooth_api.cc
@@ -9,6 +9,7 @@
#include "base/bind_helpers.h"
#include "base/lazy_instance.h"
#include "base/memory/ref_counted.h"
+#include "base/profiler/scoped_profile.h"
#include "content/public/browser/browser_thread.h"
#include "device/bluetooth/bluetooth_adapter.h"
#include "device/bluetooth/bluetooth_device.h"
@@ -85,6 +86,10 @@ void BluetoothAPI::Shutdown() {
}
void BluetoothAPI::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("BluetoothAPI::OnListenerAdded"));
+
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
if (event_router()->IsBluetoothSupported())
event_router()->OnListenerAdded();