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

Unified Diff: chrome/browser/ui/webui/inspect_ui.cc

Issue 10890023: Miscellaneous cleanups from several months ago I never got around to landing. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
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()

Powered by Google App Engine
This is Rietveld 408576698