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

Unified Diff: chrome/test/data/extensions/platform_apps/windows_api_set_launcher_icon/background.js

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/test/data/extensions/platform_apps/windows_api_set_launcher_icon/background.js
diff --git a/chrome/browser/resources/apps_debugger/background.js b/chrome/test/data/extensions/platform_apps/windows_api_set_launcher_icon/background.js
similarity index 63%
copy from chrome/browser/resources/apps_debugger/background.js
copy to chrome/test/data/extensions/platform_apps/windows_api_set_launcher_icon/background.js
index fc106f2b4f78ee98e6cd495de8b63f13fb78e3b2..b3bb8edd8eb6a7205d6b786090b2b67f55adf0eb 100644
--- a/chrome/browser/resources/apps_debugger/background.js
+++ b/chrome/test/data/extensions/platform_apps/windows_api_set_launcher_icon/background.js
@@ -3,8 +3,8 @@
// found in the LICENSE file.
chrome.app.runtime.onLaunched.addListener(function() {
- chrome.app.window.create('main.html', {
- 'width': 600,
- 'height': 600
+ chrome.app.window.create('test.html', {}, function(win) {
+ win.setLauncherIcon("icon.png");
jeremya 2012/12/03 00:09:34 Is this allowed to be a remote resource?
stevenjb 2012/12/03 19:02:41 No, a remote resource would have to be fetched wit
+ chrome.test.sendMessage('IconSet');
});
});

Powered by Google App Engine
This is Rietveld 408576698