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

Side by Side Diff: extensions/browser/api/bluetooth/bluetooth_event_router.cc

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Enum class Created 3 years, 7 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698