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

Unified Diff: chrome/browser/extensions/api/web_navigation/web_navigation_api.cc

Issue 23547006: Make ~WebNavigationEventRouter remove itself from browsers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
diff --git a/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc b/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
index 7e2c8db6cd303bd776ce48558961878fbd211a94..ed2e61c379b0d4350b6c526bbbb1c70140dd51ee 100644
--- a/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
+++ b/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
@@ -91,12 +91,13 @@ WebNavigationEventRouter::WebNavigationEventRouter(Profile* profile)
content::NotificationService::AllSources());
BrowserList::AddObserver(this);
- for (chrome::BrowserIterator it; !it.done(); it.Next()) {
+ for (chrome::BrowserIterator it; !it.done(); it.Next())
OnBrowserAdded(*it);
- }
}
WebNavigationEventRouter::~WebNavigationEventRouter() {
+ for (chrome::BrowserIterator it; !it.done(); it.Next())
+ OnBrowserRemoved(*it);
BrowserList::RemoveObserver(this);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698