Index: chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc |
diff --git a/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc b/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc |
index 5ae0a95e294c5662281c431ca984e96b5d6852f5..56a2a7dcbbd2d2d0db68f4a7faeac5fad02f666a 100644 |
--- a/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc |
+++ b/chrome/browser/ui/webui/options2/chromeos/bluetooth_options_handler2.cc |
@@ -59,7 +59,8 @@ BluetoothOptionsHandler::~BluetoothOptionsHandler() { |
return; |
} |
- adapter_->RemoveObserver(this); |
+ if (adapter_.get()) |
James Hawkins
2012/03/15 17:19:07
Optional nit: You can leave off the .get().
|
+ adapter_->RemoveObserver(this); |
} |
void BluetoothOptionsHandler::GetLocalizedValues( |