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

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

Issue 11316292: Add app.window.setIcon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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
diff --git a/chrome/browser/extensions/shell_window_registry.cc b/chrome/browser/extensions/shell_window_registry.cc
index 2eed2b3ba2e34688fba1a02c7399a05dd0499ad9..43ef604222c759f299bd210ef71cf951af605296 100644
--- a/chrome/browser/extensions/shell_window_registry.cc
+++ b/chrome/browser/extensions/shell_window_registry.cc
@@ -57,6 +57,11 @@ void ShellWindowRegistry::AddShellWindow(ShellWindow* shell_window) {
FOR_EACH_OBSERVER(Observer, observers_, OnShellWindowAdded(shell_window));
}
+void ShellWindowRegistry::UpdateShellWindow(ShellWindow* shell_window) {
+ shell_windows_.insert(shell_window);
+ FOR_EACH_OBSERVER(Observer, observers_, OnShellWindowUpdated(shell_window));
+}
+
void ShellWindowRegistry::RemoveShellWindow(ShellWindow* shell_window) {
shell_windows_.erase(shell_window);
FOR_EACH_OBSERVER(Observer, observers_, OnShellWindowRemoved(shell_window));

Powered by Google App Engine
This is Rietveld 408576698