OLD | NEW |
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 "extensions/browser/api/bluetooth/bluetooth_event_router.h" | 5 #include "extensions/browser/api/bluetooth/bluetooth_event_router.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 497 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
498 DCHECK_EQ(extensions::NOTIFICATION_EXTENSION_HOST_DESTROYED, type); | 498 DCHECK_EQ(extensions::NOTIFICATION_EXTENSION_HOST_DESTROYED, type); |
499 ExtensionHost* host = content::Details<ExtensionHost>(details).ptr(); | 499 ExtensionHost* host = content::Details<ExtensionHost>(details).ptr(); |
500 BLUETOOTH_LOG(DEBUG) << "Host Destroyed: " << host->extension_id(); | 500 BLUETOOTH_LOG(DEBUG) << "Host Destroyed: " << host->extension_id(); |
501 CleanUpForExtension(host->extension_id()); | 501 CleanUpForExtension(host->extension_id()); |
502 } | 502 } |
503 | 503 |
504 void BluetoothEventRouter::OnExtensionUnloaded( | 504 void BluetoothEventRouter::OnExtensionUnloaded( |
505 content::BrowserContext* browser_context, | 505 content::BrowserContext* browser_context, |
506 const Extension* extension, | 506 const Extension* extension, |
507 UnloadedExtensionInfo::Reason reason) { | 507 UnloadedExtensionReason reason) { |
508 CleanUpForExtension(extension->id()); | 508 CleanUpForExtension(extension->id()); |
509 } | 509 } |
510 | 510 |
511 } // namespace extensions | 511 } // namespace extensions |
OLD | NEW |