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

Unified Diff: chrome/browser/ui/extensions/shell_window.cc

Issue 11316292: Add app.window.setIcon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ShellWindowUpdate -> ShellWindowIconUpdated Created 8 years 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/extensions/shell_window.cc
diff --git a/chrome/browser/ui/extensions/shell_window.cc b/chrome/browser/ui/extensions/shell_window.cc
index 0a7d23fadd592fa5f4d15d9cf656205750979143..331b9c0761fb22fe71a104221828051214a8842c 100644
--- a/chrome/browser/ui/extensions/shell_window.cc
+++ b/chrome/browser/ui/extensions/shell_window.cc
@@ -94,6 +94,11 @@ ShellWindow* ShellWindow::Create(Profile* profile,
return window;
}
+void ShellWindow::SetAppIconUrl(const GURL& url) {
+ app_icon_url_ = url;
+ extensions::ShellWindowRegistry::Get(profile_)->ShellWindowIconUpdated(this);
+}
+
ShellWindow::ShellWindow(Profile* profile,
const extensions::Extension* extension)
: profile_(profile),

Powered by Google App Engine
This is Rietveld 408576698