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

Unified Diff: chrome/browser/extensions/shell_window_registry.cc

Issue 12207155: Revert 182194 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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/extensions/shell_window_registry.cc
===================================================================
--- chrome/browser/extensions/shell_window_registry.cc (revision 182229)
+++ chrome/browser/extensions/shell_window_registry.cc (working copy)
@@ -67,9 +67,8 @@
}
void ShellWindowRegistry::RemoveShellWindow(ShellWindow* shell_window) {
- size_t num_erased = shell_windows_.erase(shell_window);
- if (num_erased > 0)
- FOR_EACH_OBSERVER(Observer, observers_, OnShellWindowRemoved(shell_window));
+ shell_windows_.erase(shell_window);
+ FOR_EACH_OBSERVER(Observer, observers_, OnShellWindowRemoved(shell_window));
}
void ShellWindowRegistry::AddObserver(Observer* observer) {
« no previous file with comments | « chrome/browser/extensions/platform_app_browsertest.cc ('k') | chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698