| Index: chrome/browser/ui/webui/inspect_ui.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/inspect_ui.cc (revision 153800)
|
| +++ chrome/browser/ui/webui/inspect_ui.cc (working copy)
|
| @@ -404,12 +404,10 @@
|
| void InspectUI::Observe(int type,
|
| const content::NotificationSource& source,
|
| const content::NotificationDetails& details) {
|
| - if (source == content::Source<WebContents>(web_ui()->GetWebContents())) {
|
| - if (type == content::NOTIFICATION_WEB_CONTENTS_DISCONNECTED)
|
| - StopListeningNotifications();
|
| - return;
|
| - }
|
| - RefreshUI();
|
| + if (source != content::Source<WebContents>(web_ui()->GetWebContents()))
|
| + RefreshUI();
|
| + else if (type == content::NOTIFICATION_WEB_CONTENTS_DISCONNECTED)
|
| + StopListeningNotifications();
|
| }
|
|
|
| void InspectUI::StopListeningNotifications()
|
|
|