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

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
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model_unittest.cc ('k') | chrome/common/chrome_notification_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/inspect_ui.cc
===================================================================
--- chrome/browser/ui/webui/inspect_ui.cc (revision 154486)
+++ 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()
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model_unittest.cc ('k') | chrome/common/chrome_notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698